:root {
  --bg-color: #F0EDE4;
  --accent-color: #f4c542;
  --primary-blue: #23395d;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
}

/* CONTAINER */
.restaurants-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ENTRY WRAPPER */
.restaurant-entry {
  position: relative;
  max-width: 100%;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FLOATING LOGO */
.logo-container {
  position: relative;
  top: 30px;
  z-index: 10;
}

.restaurant-logo,
.logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.restaurant-logo {
  object-fit: cover;
}

.logo-container:hover .restaurant-logo {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* CARD */
.restaurant-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  margin-top: -60px;
  padding: 5rem 2rem 2rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.restaurant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* HEADER INSIDE CARD */
.restaurant-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.restaurant-header h2 {
  font-size: 1.8rem;
  color: var(--primary-blue);
  font-family: "Playfair Display", serif;
  margin-top: 1.5rem;;
}

.restaurant-header .description {
  color: #444;
  font-size: 1rem;
}

/* SPLIT CONTENT */
.card-content.split {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
}

/* LEFT (IMAGE) */
.card-section.left {
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--accent-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-placeholder {
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
  color: #777;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px dashed #ccc;
  font-style: italic;
}

/* RIGHT (CONTACT INFO) */
.card-section.right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: #fff7e6;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.card-section.right h3 {
  font-family: "Playfair Display", serif;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 3px;
}

.card-section.right p {
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.website {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}
.website:hover {
  text-decoration: underline;
}

.contact-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

/* ADS */
.ad-section {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 3rem auto;
  text-align: center;
}
.ad-text {
  background: #f9f9f9;
  border: 1px dashed #ccc;
  color: #777;
  padding: 1rem;
  border-radius: 8px;
}

/* ==== FULLSCREEN IMAGE MODAL ==== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.image-modal img.modal-content {
  max-width: 92%;
  max-height: 92%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  object-fit: contain;
}

.image-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.image-modal .close-btn:hover {
  color: #f4c542;
}

/* Optional hover effect on card image */
.menu-image:hover {
  opacity: 0.9;
  cursor: zoom-in;
}

/* ==== Advertisements Integration ==== */
/* SIDEBAR ADS */
.sidebar-ad {
  width: 150px; /* Fits 1200px - 900px split */
}
.sidebar-ad.left {
  margin-right: 10px;
}
.sidebar-ad.right {
  margin-left: 10px;
}
.ad-placeholder[data-ad-placeholder="skyscraper"] {
  width: 100%;
  min-height: 600px; /* Typical skyscraper size, e.g., 160x600 or 300x600 */
}

/* Banner ad placeholder */
.ad-placeholder {
  width: 100%;
  box-sizing: border-box;
}
.ad-placeholder[data-ad-placeholder="banner"] {
  min-height: 100px; /* Adjust for banner ads */
  margin: 20px 0;
  text-align: center;
}
.ad-placeholder[data-ad-placeholder="in-feed"] {
  min-height: 200px; /* Match restaurant card height */
  margin: 20px 0;
  background: #f9f9f9; /* Optional: visual cue for testing */
}
.ad-section {
  min-height: 100px;
  margin: 20px 0;
  text-align: center;
  background: #f0f0f0; /* Non-Google placeholder */
}
.adsbygoogle {
  max-width: 100%; /* Prevent overflow */
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .card-content.split {
    flex-direction: column;
  }
  .card-section.left,
  .card-section.right {
    flex: 1 1 100%;
  }
  .menu-image {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .restaurant-logo {
    width: 90px;
    height: 90px;
  }
  .logo-container {
    top: 15px;
  }
  .restaurant-card {
    padding: 4rem 1.25rem 1.5rem;
  }
}