:root {
  /* Color Palette - Preserved from original */
  --color-primary-red: #990000;
  --color-primary-red-dark: #6a1212;
  --color-primary-red-light: #cc0000;
  --color-gold: #dcd4b9;
  --color-gold-light: #ead4a4;
  --color-bg-dark: #423b2e;
  --color-footer-bg: #585245;
  --color-text-main: #222222;
  --color-text-white: #ffffff;
  --color-bg-light: #f8f8f8;
  --color-border: #cccccc;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg-dark);
  font-family: 'Open Sans', 'Georgia', sans-serif;
  color: var(--color-text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  /* Elegant serif for headings */
  margin-top: 0;
}

a {
  color: var(--color-primary-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-red-light);
}

/* Layout Wrapper */
#wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--color-primary-red) 0%, var(--color-primary-red-dark) 100%);
  color: var(--color-text-white);
  padding: var(--spacing-lg) 0 0 0;
  position: relative;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-lg);
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-gold);
}

#logo img {
  height: 60px;
  margin-right: var(--spacing-md);
}

#logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
}

/* Navigation - Modernized */
nav {
  background-color: rgba(0, 0, 0, 0.2);
  margin-top: var(--spacing-lg);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}

nav li {
  position: relative;
}

nav a {
  display: block;
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--color-text-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

nav a:hover,
nav a.current {
  background-color: var(--color-bg-light);
  color: var(--color-primary-red);
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-white);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.search-toggle:hover,
.search-toggle:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  outline: none;
}

.search-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: '';
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: center;
}

.nav-search-item {
  margin-left: auto;
}

.nav-search-item + .nav-search-item {
  margin-left: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--color-text-white);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover,
.social-link:focus {
  color: #f1dfb8;
  background: transparent;
  outline: none;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.social-link-mobile {
  display: none;
}

.social-link-desktop {
  margin-left: 4px;
}

.nav-social-item {
  margin-left: 0;
}

.nav-social-item .social-link {
  width: 34px;
  height: 34px;
  padding: 0;
}

.nav-social-item .social-link:hover,
.nav-social-item .social-link:focus,
.nav-social-item .social-link.current {
  background: transparent;
  color: #f1dfb8;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
}

.nav-search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  border-radius: 999px;
  font: inherit;
  color: var(--color-text-main);
  transition: width 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
}

.nav-search.is-open .nav-search-input {
  width: 138px;
  opacity: 1;
  padding: 7px 10px;
  border: 1px solid #d8cab3;
  background: #fff;
  pointer-events: auto;
}

.nav-search-input:focus,
.mobile-search-input:focus {
  outline: none;
  border-color: #bf8d4a;
  box-shadow: 0 0 0 3px rgba(220, 212, 185, 0.45);
}

.nav-search-submit {
  display: none;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1dfb8 0%, #dcc58a 100%);
  color: #5b1a12;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-search.is-open .nav-search-submit {
  display: inline-flex;
  align-items: center;
}

.nav-search-submit:hover,
.nav-search-submit:focus {
  outline: none;
  background: linear-gradient(135deg, #f4e8cb 0%, #e2cb95 100%);
}

.mobile-search {
  display: none;
  position: relative;
}

.mobile-search-panel {
  display: none;
}

/* Dropdown */
nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  flex-direction: column;
  border-top: 3px solid var(--color-primary-red);
}

nav li:hover ul {
  display: flex;
}

nav li ul a {
  color: var(--color-text-main);
  padding: 12px var(--spacing-md);
  border-bottom: 1px solid #eee;
}

nav li ul a:hover {
  background-color: var(--color-gold-light);
  color: var(--color-primary-red-dark);
}

/* Main Content */
main {
  flex: 1;
  padding: var(--spacing-xl);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 3fr 1fr;
    /* Main content vs sidebar */
  }
}

/* Buttons modernized */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

@media (min-width: 1024px) {
  .action-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.button-card {
  background-color: var(--color-bg-light);
  border-radius: 8px;
  padding: var(--spacing-lg);
  display: flex;
  /* Flex to align icon and text */
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #eee;
  color: var(--color-text-main);
}

.button-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.top-cities-section {
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 0 var(--spacing-lg);
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 6px;
}

.section-heading p {
  margin: 0;
  color: #6b5f4f;
}

.top-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.top-city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fffdfa 0%, #f3ead9 100%);
  border: 1px solid #e2d3ba;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.top-city-card:hover {
  color: var(--color-primary-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.home-map-section {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 0 var(--spacing-lg);
}

#homepage-map {
  width: 100%;
  height: 540px;
  border: 1px solid #e2d3ba;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #f4efe5;
}

.restaurant-map {
  width: 100%;
  border: 1px solid #e2d3ba;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #f4efe5;
}

.restaurant-map-compact {
  height: 300px;
  margin: 0 0 22px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 12px 0 22px;
  padding: 0 4px;
  color: #5f5446;
  font-size: 0.94rem;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #7a6d5d;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.18);
}

.map-legend-dot.marker-kitajska {
  background: #a61b1b;
}

.map-legend-dot.marker-tajska {
  background: #d67a11;
}

.map-legend-dot.marker-vietnamska {
  background: #2e8b57;
}

.map-legend-dot.marker-japonska {
  background: #3a3a3a;
}

.map-legend-dot.marker-korejska {
  background: #2f5fb3;
}

.map-legend-dot.marker-azijska {
  background: #8e6b16;
}

.homepage-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage-map-marker span {
  display: block;
  width: 18px;
  height: 18px;
  background: #7a6d5d;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.homepage-map-marker.marker-kitajska span {
  background: #a61b1b;
}

.homepage-map-marker.marker-tajska span {
  background: #d67a11;
}

.homepage-map-marker.marker-vietnamska span {
  background: #2e8b57;
}

.homepage-map-marker.marker-japonska span {
  background: #3a3a3a;
}

.homepage-map-marker.marker-korejska span {
  background: #2f5fb3;
}

.homepage-map-marker.marker-azijska span {
  background: #8e6b16;
}

.homepage-map-popup {
  min-width: 180px;
  font-family: 'Open Sans', 'Georgia', sans-serif;
  line-height: 1.45;
}

.homepage-map-popup strong {
  display: block;
  margin-bottom: 4px;
  color: #5a130f;
}

.homepage-map-popup .popup-cuisine,
.homepage-map-popup .popup-address {
  margin-bottom: 4px;
  color: #5f5446;
}

.homepage-map-popup a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
}

.top-city-name {
  color: var(--color-primary-red-dark);
  font-weight: 700;
}

.top-city-count {
  flex-shrink: 0;
  color: #5f5648;
  font-weight: 600;
}

.button-card-icon {
  width: 48px;
  height: 48px;
  margin-right: var(--spacing-md);
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#content {
  color: var(--color-text-main);
  padding: var(--spacing-lg);
}

#content #info {
  font-size: 1rem;
}

#content #info img.title-image {
  float: right;
  margin: 0 0 var(--spacing-md) var(--spacing-md);
  max-width: 100%;
}

#content #info p {
  margin: 0 0 var(--spacing-lg);
}

#content #info h1,
#content #info h2,
#content #info h3,
#content #info p,
#content #info li,
#content #info td,
#content #info th {
  text-align: left;
}

#breadcrumbs {
  padding: 14px var(--spacing-xl);
  background: linear-gradient(180deg, #fbf7ef 0%, #f1e7d5 100%);
  border-top: 1px solid #d7cab3;
  border-bottom: 1px solid #e4dac8;
  color: #6a5a44;
  font-size: 0.95rem;
  line-height: 1.7;
}

#breadcrumbs a {
  color: var(--color-primary-red-dark);
  font-weight: 600;
}

ul.places {
  list-style: none;
  margin: var(--spacing-lg) 0;
  padding: 0;
}

ul.places li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--spacing-md);
  padding: 14px 18px;
  margin: 0 0 10px;
  background: #f6f3eb;
  border: 1px solid #e4ddcd;
  border-radius: 10px;
}

ul.places li.predstavitev {
  background: #f4ecd0;
  border-color: #dfcf90;
}

ul.places li.major-city {
  background: #ece2cf;
  border-color: #d9c8a7;
}

ul.places li.major-city .main a,
ul.places li.major-city .place-count {
  font-weight: 700;
}

ul.places li .main {
  flex: 1;
  min-width: 0;
}

ul.places li .rating,
ul.places li .rating-wrap,
ul.places li .list-sorting {
  margin-left: auto;
}

ul.places li .main a {
  font-weight: 600;
}

.places-meta {
  color: #5d5445;
  font-weight: 600;
}

.place-count {
  display: inline-block;
  margin-left: 8px;
  color: #5d5445;
  font-weight: 600;
}

ul.places li .list-rating {
  color: #5c5446;
  white-space: nowrap;
}

ul.places li.order-by {
  background: #ece5d6;
  border-color: #ddd2bb;
}

.list-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a513f;
}

.list-sorting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

ul.places li.order-by a {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d7ccb2;
  color: var(--color-primary-red-dark);
  font-size: 0.9rem;
}

.rating-wrap {
  flex-shrink: 0;
}

#rate-comment-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: stretch;
  margin: 24px 0 10px;
}

#rate {
  flex: 1 1 320px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f8f2e5 0%, #efe2c9 100%);
  border: 1px solid #e1d3bb;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

#rate p {
  margin-bottom: 12px;
  font-weight: 700;
  color: #5c4b35;
}

#rate-ui {
  margin: 0 auto;
  display: block;
  width: 175px;
  height: 32px;
  cursor: pointer;
  background: url('images/rate_bg.png') top left no-repeat;
  position: relative;
  overflow: hidden;
}

#rate-ui-stars {
  position: absolute;
  top: 0;
  left: 0;
  height: 32px;
  background: url('images/rate.png') top left no-repeat;
  pointer-events: none;
}

#comments {
  margin-top: 28px;
}

#comments > p:first-child {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.comment {
  margin: 0 0 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fffdfa 0%, #f6efe4 100%);
  border: 1px solid #e5d8c2;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.comment-author {
  color: var(--color-primary-red-dark);
  font-size: 1.15rem;
  line-height: 1.2;
}

.comment-timestamp {
  color: #756956;
  font-size: 0.95rem;
  white-space: nowrap;
}

.comment p {
  margin-bottom: 12px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.comment .rating {
  margin-left: auto;
}

#comment-button {
  display: inline-flex;
  flex: 1 1 320px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary-red) 0%, #b00000 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

#comment-button:hover {
  background: linear-gradient(135deg, #7f0000 0%, var(--color-primary-red) 100%);
}

#comment-button p {
  margin: 0;
  color: #fff;
}

.more-comments-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary-red) 0%, #b00000 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.more-comments-link-icon {
  font-size: 1rem;
  line-height: 1;
}

.more-comments-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #7f0000 0%, var(--color-primary-red) 100%);
}

#comment_icon {
  width: 28px;
  height: 28px;
}

table.cookie {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0 var(--spacing-xl);
  background: #fffdfa;
  border: 1px solid #ddcfb7;
  box-shadow: var(--shadow-sm);
}

table.cookie th,
table.cookie td {
  padding: 14px 16px;
  border-bottom: 1px solid #ecdfcb;
  vertical-align: top;
}

table.cookie th {
  background: #efe2c9;
  color: #5a4934;
  font-weight: 700;
}

table.cookie tr:nth-child(even) td {
  background: #fbf7f0;
}

#error-report-form {
  width: 100%;
  max-width: none;
  margin-top: 18px;
  padding: 24px;
  background: linear-gradient(180deg, #fffdfa 0%, #f6efe4 100%);
  border: 1px solid #e5d8c2;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.form-intro {
  max-width: none;
  color: #645847;
}

#report-error {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #5c4b35;
}

#report-error input[type="text"],
#report-error textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8cab3;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

#report-error textarea {
  min-height: 180px;
  resize: vertical;
}

.form-security {
  display: inline-flex;
  align-items: flex-end;
  gap: 18px;
  justify-content: flex-start;
}

.form-security .form-field {
  flex: 0 0 auto;
}

#report-code {
  max-width: 240px;
}

#report-name[readonly] {
  background: #f4efe5;
  color: #5e5241;
  cursor: default;
}

.security-code-box {
  min-width: 92px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #efe2c9;
  border: 1px solid #dcc7a5;
  text-align: center;
}

.security-code-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6d5c43;
}

.security-code-box strong {
  font-size: 1rem;
  color: var(--color-primary-red-dark);
}

.form-submit {
  justify-self: start;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary-red) 0%, #b00000 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.form-submit:hover {
  background: linear-gradient(135deg, #7f0000 0%, var(--color-primary-red) 100%);
}

.search-panel {
  margin: 20px 0 30px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, #fffdfa 0%, #f6efe4 100%);
  border: 1px solid #e5d8c2;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid #d8cab3;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.search-input:focus {
  outline: none;
  border-color: #bf8d4a;
  box-shadow: 0 0 0 3px rgba(220, 212, 185, 0.45);
}

.search-submit {
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary-red) 0%, #b00000 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.search-submit:hover {
  background: linear-gradient(135deg, #7f0000 0%, var(--color-primary-red) 100%);
}

.search-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.2);
}

#address-form {
  margin: 20px 0 24px;
  padding: 24px;
  background: linear-gradient(180deg, #fffdfa 0%, #f6efe4 100%);
  border: 1px solid #e5d8c2;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

#address-form form {
  display: grid;
  gap: 12px;
}

#address-form label {
  display: block;
  margin: 0;
  font-weight: 700;
  color: #5c4b35;
}

.nearest-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#address-form input[type="text"] {
  flex: 1 1 320px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d8cab3;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--color-text-main);
}

#address-form input[type="text"]:focus {
  outline: none;
  border-color: #bf8d4a;
  box-shadow: 0 0 0 3px rgba(220, 212, 185, 0.45);
}

#my-address {
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary-red) 0%, #b00000 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

#my-address:hover {
  background: linear-gradient(135deg, #7f0000 0%, var(--color-primary-red) 100%);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 26px 0 30px;
}

.book-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  background: linear-gradient(180deg, #fffdfa 0%, #f5ecde 100%);
  border: 1px solid #e3d4bd;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.book-cover {
  flex: 0 0 92px;
}

.book-cover img {
  display: block;
  width: 92px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.book-content {
  min-width: 0;
  flex: 1;
}

.book-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #b40000;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.book-title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.book-title a {
  color: #5a130f;
}

.book-meta {
  margin: 0;
  color: #645847;
  font-size: 0.95rem;
}

.detail-card {
  margin: 0 0 16px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fffdfa 0%, #f6efe4 100%);
  border: 1px solid #e5d8c2;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.restaurant-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 18px;
}

.restaurant-details .detail-card {
  margin: 0;
}

.restaurant-details .detail-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.detail-card-rating {
  background: linear-gradient(180deg, #fff8ea 0%, #f1e2c5 100%);
}

.map {
  margin: 0 0 18px;
}

.map-responsive {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.map-responsive iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.detail-label {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #5c4b35;
}

.detail-rating-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-rating-text {
  font-size: 1.05rem;
}

.detail-lines > div,
.detail-lines {
  margin-bottom: 6px;
}

.detail-lines > div:last-child {
  margin-bottom: 0;
}

.detail-key {
  font-weight: 700;
  color: #4f4130;
}

.detail-muted {
  color: #6d6355;
}

.detail-warning {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1ef;
  border: 1px solid #efc3bc;
  color: #9e1d11;
  font-weight: 700;
}

.detail-warning-full {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 800;
}

.detail-note-box {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  background: #f8f1e3;
  border: 1px solid #e1d3bb;
  border-radius: 12px;
}

.restaurant-order-link {
  display: block;
  float: none;
  margin: 0 auto 16px;
  text-align: center;
}

.restaurant-order-link img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.restaurant-order-clear {
  clear: both;
}

.form-error-box {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1ef;
  border: 1px solid #efc3bc;
  color: #9e1d11;
  font-weight: 700;
}

.form-success-box {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #edf8ef;
  border: 1px solid #b9ddbe;
  color: #1f6a2a;
  font-weight: 700;
}

.rating {
  background: url('images/rating_bg.png') top left no-repeat;
  width: 85px;
  height: 16px;
  position: relative;
}

.rating .stars {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  background: url('images/rating.png') top left no-repeat;
}

/* Footer */
footer {
  background-color: var(--color-footer-bg);
  color: #ddd;
  padding: var(--spacing-xl) 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  padding: 0 var(--spacing-lg);
  text-align: left;
}

.footer-copyright {
  background-color: #4D473C;
  text-align: center;
  padding: var(--spacing-md);
  margin-top: var(--spacing-lg);
  font-size: 0.85rem;
}

/* Footer Links - Gold/Light for readability */
footer a {
  color: var(--color-gold-light);
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
}

.footer-section ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-copyright a {
  color: var(--color-gold);
}

/* Utilities */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.responsive-img {
  max-width: 100%;
  height: auto;
}

/* Mobile Hamburger Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-gold);
  margin: 6px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  main {
    padding: 12px;
  }

  #breadcrumbs {
    padding: 12px;
  }

  #content {
    padding: 12px;
  }

  .home-map-section {
    padding: 0 12px;
  }

  #homepage-map {
    height: 360px;
    border-radius: 14px;
  }

  .restaurant-map {
    border-radius: 14px;
  }

  .restaurant-map-compact {
    height: 240px;
    margin-bottom: 18px;
  }

  .map-legend {
    gap: 8px 12px;
    margin-top: 10px;
    margin-bottom: 18px;
    font-size: 0.88rem;
  }

  .header-inner,
  .footer-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .more-comments-link {
    width: 100%;
    min-width: 0;
  }

  .restaurant-order-link {
    display: block;
    margin: 0 auto 10px;
    text-align: center;
  }

  .restaurant-order-link img {
    display: inline-block;
    max-width: 100%;
    height: auto;
  }

  #address-form {
    padding: 18px;
  }

  .nearest-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  #my-address {
    width: 100%;
  }

  #content #info img.title-image {
    float: none;
    display: block;
    margin: 0 auto var(--spacing-md);
  }

  ul.places li,
  ul.places li.order-by {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-sorting {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .rating-wrap {
    align-self: flex-start;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .header-actions {
    gap: 8px;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-search {
    display: block;
  }

  .social-link-mobile {
    display: inline-flex;
    width: 40px;
    height: 40px;
  }

  #logo {
    flex-direction: row;
    margin-bottom: 0;
  }

  #logo img {
    height: 40px;
    margin-right: var(--spacing-sm);
    margin-bottom: 0;
  }

  #logo-text {
    font-size: 1.2rem;
  }

  /* Hide nav by default on mobile */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-primary-red) 0%, var(--color-primary-red-dark) 100%);
    z-index: 1000;
    box-shadow: var(--shadow-md);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  .nav-search-item {
    display: none;
  }

  .nav-social-item {
    display: none;
  }

  nav>ul>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav a {
    padding: var(--spacing-md);
    display: block;
  }

  /* Submenus - hidden by default, shown on tap */
  nav li ul {
    position: static;
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: none;
    box-shadow: none;
  }

  nav li ul.open {
    display: block;
  }

  nav li ul a {
    padding-left: var(--spacing-xl);
    color: var(--color-text-white);
    font-size: 0.9rem;
  }

  nav li ul a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .mobile-search-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, calc(100vw - 24px));
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-md);
    border: 1px solid #e5d8c2;
  }

  .mobile-search.is-open .mobile-search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .mobile-search-input {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d8cab3;
    border-radius: 10px;
    font: inherit;
  }

  .mobile-search-submit {
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary-red) 0%, #b00000 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
  }

  #error-report-form {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-security {
    flex-direction: column;
    align-items: stretch;
  }

  .security-code-box {
    width: 100%;
  }

  .restaurant-details {
    grid-template-columns: 1fr;
  }

  .restaurant-details .detail-card,
  .detail-note-box,
  #restaurant-menu {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .restaurant-details .detail-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (min-width: 769px) {
  .mobile-search {
    display: none;
  }

  .social-link-mobile {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .nav-search-item {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-search-item:last-child {
    border-left: 0;
  }

  .nav-social-item {
    border-left: 0;
    padding-left: 2px;
    margin-left: 2px;
  }

  .nav-social-item .social-link {
    width: 30px;
    height: 30px;
  }
}

/* Comment Box / Modal Styles */
#dimm {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  /* Modern semi-transparent overlay */
  z-index: 100;
  display: none;
  /* Hidden by default */
  backdrop-filter: blur(2px);
}

#comment-box {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background-color: var(--color-gold-light);
  padding: var(--spacing-lg);
  z-index: 101;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-gold);
}

#comment-box-close {
  position: sticky;
  top: 0;
  display: inline-block;
  color: var(--color-primary-red);
  font-family: sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  float: right;
  cursor: pointer;
  line-height: 1;
  background: var(--color-gold-light);
  padding-left: 8px;
}

#comment-box-close:hover {
  color: var(--color-primary-red-dark);
}

/* Form Styles inside Modal */
#comment-box label {
  font-weight: 600;
  color: var(--color-text-main);
}

#comment-box input,
#comment-box textarea,
#comment-box select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
}

#comment-box textarea {
  min-height: 140px;
  resize: vertical;
}

#comment-box input[type="submit"] {
  width: auto;
  float: right;
  background: linear-gradient(135deg, var(--color-primary-red) 0%, #b00000 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 10px;
}

#comment-box input[type="submit"]:hover {
  background-color: var(--color-primary-red-dark);
}

#comment-box small {
  display: block;
  margin-bottom: 10px;
  color: #666;
}
