/* ─────────────── Reset & Base Styles ─────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.4;
  background-color: #f8f9fa;
  color: #333;
  height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ────────── TOP NAV & MOVING RAINBOW ────────── */
header.top-nav {
  background-color: #000;
  color: #fff;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-logo {
  height: 40px;
  margin-right: 1rem;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.btn-nav {
  border: 2px solid #fff;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  color: #fff;
  transition: background 0.2s, color 0.2s;
}

.btn-nav:hover {
  background: #fff;
  color: #000;
}

.rainbow-bar {
  background-color: #1e3253;
  text-align: center;
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
}

#rainbow-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 1rem;
  animation: rainbow-scroll 8s linear infinite;
}

@keyframes rainbow-scroll {
  0%   { transform: translateX(100%);  color: #ff0000; }
  12%  { color: #ff7f00; }
  24%  { color: #ffff00; }
  36%  { color: #00ff00; }
  48%  { color: #0000ff; }
  60%  { color: #4b0082; }
  72%  { color: #8b00ff; }
  87%  { transform: translateX(-100%); color: #ff0000; }
  100% { transform: translateX(-100%); }
}

/* ─────────── Search Section ─────────── */
main.search-main {
  padding: 4rem 1rem;
  background: #fff;
}

.search-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0d6efd;
}

.search-card {
  max-width: 700px;
  margin: 0 auto;
}

.pill-search {
  display: flex;
  border: 2px solid #0d6efd;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: none;
  font-size: 1rem;
}

.search-input::placeholder {
  color: #888;
}

.search-input:focus {
  outline: none;
}

.search-btn {
  padding: 0 2rem;
  background: linear-gradient(90deg, #0d6efd, #6f42c1);
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn:hover {
  background: linear-gradient(90deg, #6f42c1, #0d6efd);
}

/* ─────── Search Results ─────── */
.search-results {
  max-width: 700px;
  margin: 2rem auto;
}

.search-results h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.search-results ul {
  margin-top: 1rem;
}

.search-results .result-item {
  background: #fff;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: transform 0.1s;
}

.search-results .result-item:hover {
  transform: translateY(-2px);
}

.search-results .result-item a {
  color: #0d6efd;
  font-weight: bold;
}

.highlight {
  background-color: #ffeeba;
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
}

/* ─────── No Results ─────── */
.no-results h2 {
  text-align: center;
  margin-top: 2rem;
  color: #dc3545;
}
.no-results p {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1rem;
}
.no-results a {
  color: #0d6efd;
  text-decoration: underline;
}

/* ─────── PLACES PAGE STYLES ─────── */
main.places-main {
  padding: 2rem 1rem;
}
main.places-main .card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
}
.card h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  color: #333;
}
.card p {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #555;
}

/* ── PLACES BUTTONS ── */
.places-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}
.place-logo-wrapper {
  text-align: center;
}
.place-logo-btn {
  border: 2px solid #007bff;
  border-radius: 8px;
  padding: 0.5rem;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
}
.place-logo-btn img {
  max-height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease;
}
.place-logo-btn:hover {
  border-color: #0056b3;
  transform: scale(1.1);
}
.place-logo-btn:hover img {
  transform: scale(1.2);
}

/* ─── DETAIL SECTION ─── */
.place-detail {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 2rem;
}
.place-detail h2 {
  margin-bottom: 0.5rem;
  text-align: center;
}
.place-detail iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 8px;
  margin: 1rem 0;
}
.place-machine-info {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
}
.place-machine-info h3 {
  color: #0d6efd;
  margin-bottom: 0.5rem;
}
.place-machine-info a {
  color: #6f42c1;
  text-decoration: underline;
}

/* ─────────── RENTALS PAGE ─────────── */
main.rentals-main {
  padding: 2rem 1rem;
  background: #fff;
}
.rentals-main h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #0d6efd;
  font-size: 2rem;
}
.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.machine-card {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: left;
}
.machine-card h3 {
  margin-bottom: 0.5rem;
}
.machine-card p {
  margin-bottom: 0.5rem;
}
.machine-card .btn-nav {
  margin-top: 0.5rem;
  display: inline-block;
}

/* ─── FOOTER STYLES ─── */
footer.site-footer {
  background: #1e3253;
  color: #fff;
  padding: 2rem 1rem 1rem;
  margin-top: auto;
}
.footer-widgets {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.footer-col h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #fff;
}
.footer-col p,
.footer-col ul,
.footer-col ul li,
.footer-col ul li a {
  color: #ddd;
  font-size: 0.9rem;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Follow Us icons */
.social-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.social-icon img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s;
}
.social-icon img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #ccc;
}

/* ─────── RESPONSIVE TWEAKS ─────── */
@media (max-width: 768px) {
  .footer-widgets {
    flex-direction: column;
    text-align: center;
  }
  .places-buttons {
    gap: 0.5rem;
  }
  .place-logo-btn img {
    max-height: 50px;
  }
  .machines-grid {
    grid-template-columns: 1fr;
  }
}
/* ─────── Vibrant Footer ─────── */
footer.site-footer {
  background: linear-gradient(45deg, #6f42c1, #d63384);
  color: #fff;
}
footer.site-footer a {
  color: #ffe;
}
footer.site-footer a:hover {
  color: #fff;
}

/* ─────── Highlight “About” & “Machine Rentals” Buttons ─────── */
/* adjust href selectors to exactly match your links */
.nav-container a[href*="about.php"],
.nav-container a[href*="machine_rentals.php"] {
  background: linear-gradient(90deg, #ff7f50, #ff4500);
  border: none !important;
  color: #fff !important;
}
.nav-container a[href*="about.php"]:hover,
.nav-container a[href*="machine_rentals.php"]:hover {
  background: linear-gradient(90deg, #ff4500, #ff7f50);
}
/* ─────── Vibrant Header Gradient ─────── */
header.top-nav {
  background: linear-gradient(45deg, #6f42c1, #d63384);
}

/* ─────── Language‐Switch Button ─────── */
.nav-lang {
  margin-left: auto;
}
.lang-btn {
  border: 2px solid #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* ─────── Request‐Song Form Styles ─────── */
.request-song-form {
  max-width: 500px;
  margin: 1rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.request-song-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: bold;
}
.request-song-form input[type="text"],
.request-song-form input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.request-song-form .search-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.75rem;
  background: #0d6efd;
  color: #fff;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.request-song-form .search-btn:hover {
  background: #0b5ed7;
}
/* ─────── Landeros Button Styles ─────── */
.landerros-btn {
  display: inline-block;
  background-color: #007bff;       /* bright blue */
  color: #fff;
  font-weight: bold;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(0,123,255,0.7);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.landerros-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0,123,255,1);
}
.landerros-btn:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(0,123,255,1), 0 0 0 3px rgba(0,123,255,0.3);
}
/* ─────── Official Button Styles ─────── */
.btn-official {
  display: inline-block;
  background-color: #e67e22;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  text-decoration: none;
  animation: bounce 2s infinite;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.2s ease;
}
.btn-official:hover {
  background-color: #d35400;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
