/* ===== MOBILE TOPBAR FIX - ONLY FOR SCREENS 768px AND BELOW ===== */

/* IMPORTANT: All rules wrapped in media query - DOES NOT affect desktop (769px+) */

@media (max-width: 768px) {
  /* Ensure topbar shows on mobile */
  .topbar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background-color: #1A1A1A !important;
    border-bottom: 2px solid #2E7D32 !important;
  }

  /* Topbar container - ensure flex layout */
  .topbar .container {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 5px !important;
  }

  /* Contact info section */
  .contact-info {
    display: flex !important;
    flex: 0 1 auto !important;
  }

  /* Right buttons section */
  .topbar-right {
    display: flex !important;
    flex: 0 1 auto !important;
    justify-content: flex-end !important;
  }

  /* Buttons styling */
  .topbar-contact a,
  .contact-info a,
  .btn-booking,
  .btn-consult {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* Add padding to body to prevent content from hiding behind fixed topbar */
  body {
    margin: 0 !important;
    padding: 60px 0 0 0 !important;
  }

  /* Ensure main-header stays below fixed topbar */
  .main-header {
    position: sticky !important;
    top: 60px !important;
    z-index: 9998 !important;
  }

  /* Ensure header stays below fixed topbar */
  .header {
    position: sticky !important;
    top: 60px !important;
    z-index: 9997 !important;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 6px 0 !important;
  }

  .topbar .container {
    gap: 3px !important;
  }

  .topbar-contact a,
  .contact-info a,
  .btn-booking,
  .btn-consult {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 320px) {
  .topbar-contact a,
  .contact-info a,
  .btn-booking,
  .btn-consult {
    padding: 5px 6px !important;
    font-size: 0.65rem !important;
  }
}
