 /* Reset & Box Sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f7f9;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode Base */
body.dark {
  background: #121212;
  color: #e0e0e0;
}

#fixed-banner {
  position: fixed;
  max-width: 480px;
  width: 100%;
  padding: 20px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

#fixed-banner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.container {
  margin-top: 200px; /* Adjust based on banner height */
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

body.dark .container {
  background: #1e1e1e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Privacy & Disclaimer Specific Styles */
#privacy-container, #disclaimer-container {
  text-align: left; /* Left-align for privacy & disclaimer */
}

/* Headings */
h1 {
  font-size: 1.8rem;
  color: #2c7be5;
  margin-bottom: 10px;
}

body.dark h1 {
  color: #4dabf7;
}

/* Paragraphs */
p {
  color: #666;
  margin-bottom: 20px;
  font-size: 1rem;
}

body.dark p {
  color: #aaa;
}

/* Hint Text */
.hint {
  font-size: 0.8em;
  color: #666;
  text-align: center;
  margin: 5px 0;
  font-style: italic;
}

body.dark .hint {
  color: #ccc;
}

/* Status & Timer */
#status, #timer {
  margin: 15px 0;
  font-size: 0.9rem;
  min-height: 20px;
  color: #d9534f;
}

body.dark #status, body.dark #timer {
  color: #ff8f00;
}

/* Map */
#map {
  margin-top: 20px;
  height: 200px;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: none;
  background: #f0f0f0;
}

#map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* General Button Styles */
button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button, input, select, #voiceSelect, #whatsappNumber, .related-articles a {
  transition: all 0.3s ease;
}

button:hover, input:hover, select:hover, .related-articles a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Disabled State */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Light Mode Button Colors */
#saveBtn        { background-color: #27ae60; color: white; }
#findBtn        { background-color: #e67e22; color: white; }
#shareBtn       { background-color: #c0392b; color: white; }
#showQRBtn      { background-color: #2980b9; color: white; }
#directionsBtn  { background-color: #8e44ad; color: white; }
#testVoiceBtn   { background-color: #3498db; color: white; }
#nearbyBtn      { background-color: #16a085; color: white; }
#sendWABtn      { background-color: #27ae60; color: white; }
#resetBtn       { background-color: #7f8c8d; color: white; }
#supportBtn     { background-color: #f39c12; color: white; }

/* Hover Effects (Light Mode) */
button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Active Press Effect */
button:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

button:not(:disabled):focus {
  outline: 2px solid #2c7be5;
  outline-offset: 2px;
}

body.dark button:not(:disabled):focus {
  outline: 2px solid #4dabf7;
  outline-offset: 2px;
}

/* Dark Mode Button Overrides  
body.dark button {
  background-color: #3a3a3a !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
*/

/* Now override text color per button */
body.dark #saveBtn        { color: #a8e6a1 !important; }
body.dark #findBtn        { color: #f5c287 !important; }
body.dark #shareBtn       { color: #f5a9a9 !important; }
body.dark #showQRBtn      { color: #a9cfeb !important; }
body.dark #directionsBtn  { color: #d5b6e6 !important; }
body.dark #testVoiceBtn   { color: #a9d8f0 !important; }
body.dark #nearbyBtn      { color: #a8e6c1 !important; }
body.dark #sendWABtn      { color: #a8e6a1 !important; }
body.dark #resetBtn       { color: #c9cacb !important; }
/* body.dark #supportBtn     { color: #f5d7a7 !important; }  */

body.dark #supportBtn {
  background-color: #f5d7a7;
  color: #e67e22 !important; /* Orange for contrast */
}

/* Dark Mode Hover */
body.dark button:not(:disabled):hover {
  background-color: #5a5a5a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Voice Select Dropdown */
#voiceSelect {
  width: 100%;
  padding: 16px 20px;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
  border: none;
  border-radius: 8px;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* WhatsApp Input */
#whatsappNumber {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 8px;
  font-size: 17px;
  border: none;
  border-radius: 8px;
  background-color: white;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Unified Dark Mode Input Styling */
body.dark #voiceSelect,
body.dark #whatsappNumber,
body.dark input[type="tel"],
body.dark select {
  background-color: #2d2d2d;
  color: #e0e0e0;
  border: 1px solid #444;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Photo Preview */
#photoPreview {
  margin: 10px 0;
}

#photoImg {
  width: 100%;
  border-radius: 8px;
}

/* QR Code Container */
#qrContainer {
  display: none;
  margin: 15px auto;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

body.dark #qrContainer {
  background: #2d2d2d;
  border-color: #444;
  color: #e0e0e0;
}

/* QR Code Wrapper */
#qrcode-wrapper {
  display: inline-block;
  text-align: center;
  padding: 10px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* QR Code Canvas */
#qrcode canvas {
  display: block;
  margin: 0 auto;
  width: 128px !important;
  height: 128px !important;
}

/* QR Code Text */
#qrContainer p {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
}

body.dark #qrContainer p {
  color: #aaa;
}

/* Nearby Places Container */
#nearbyContainer {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 0.9em;
  color: #333;
  text-align: left;
}

body.dark #nearbyContainer {
  background: #2d2d2d;
  color: #e0e0e0;
}

.nearby-place {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

body.dark .nearby-place {
  border-bottom: 1px solid #444;
}

.nearby-place:last-child {
  border-bottom: none;
}

.nearby-place h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
}

.nearby-place p {
  margin: 2px 0;
  font-size: 0.9em;
}

/* Support Button */
#supportBtn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #f39c12;
  color: white;
}



#supportBtn:hover {
  background-color: #e67e20;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

body.dark #supportBtn:hover {
  background-color: #f8e1b7 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Labels */
label {
  display: block;
  text-align: left;
  margin: 5px 0 3px 0;
  font-weight: 600;
  color: #555;
}

body.dark label {
  color: #ccc;
}

/* Inputs */
input[type="tel"] {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 8px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: white;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

body.dark input[type="tel"] {
  background-color: #2d2d2d;
  color: #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Select */
select {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 8px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: white;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

body.dark select {
  background-color: #2d2d2d;
  color: #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Links */
a {
  color: #2c7be5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

body.dark a {
  color: #4dabf7;
}
/* Bottom ad banner */
.adsbygoogle {
  margin: 10px auto;
  text-align: center;
}

/* Nearby Place Links */
.nearby-place a {
  color: #2c7be5;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.nearby-place a:hover {
  color: #1a68d1;
}

/* Optional: Add pointer cursor to whole card */
.nearby-place h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  cursor: pointer;
}

.nearby-place h4:hover a {
  color: #1a68d1;
}


.ad-hidden {
  display: none;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Space between map and tips */
}

/* General Section Styles */
.how-it-works,
.about-parkhere {
  margin: 20px 0;
  padding: 15px;
  background: #f0f8ff;
  border-radius: 8px;
}

/* Header Styles */
.how-it-works h3,
.about-parkhere h3 {
  margin: 0 0 10px 0;
  color: #2c7be5;
}

/* Paragraph Styles */
.how-it-works p,
.about-parkhere p {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  color: #666;
}

/* List Styles */
.how-it-works ul,
.about-parkhere ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
  list-style-type: disc;
}

/* List Items */
.how-it-works li,
.about-parkhere li {
  margin-bottom: 5px;
  color: black;
}

/* Info Box Styles */
.info-box {
  margin: 15px 0;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95em;
  line-height: 1.5;
}

.info-box h3 {
  margin: 0 0 8px 0;
  color: #2c7be5;
  font-size: 1.1em;
}

.info-box ul {
  margin: 8px 0;
  padding-left: 20px;
}

.info-box p {
  margin: 8px 0;
  color: #666; /* Light gray for light mode */
}

/* Dark Mode Support */
body.dark .info-box {
  background: #2d2d2d;
  border-color: #444;
  color: #ccc; /* Lighter text for dark mode */
}

body.dark .info-box h3 {
  color: #4dabf7;
}

body.dark .info-box p,
body.dark .info-box li {
  color: #ccc; /* Lighter text for better contrast */
}

body.dark .related-articles {
  background: #2d2d2d;
  border-left: 4px solid #4dabf7;
  color: #e0e0e0;
}

.related-articles a {
  color: #a9cfeb; /* Light blue-purple for better visibility */
}

.container body.dark .related-articles a,
body.dark .container .related-articles a {
  color: #e6f7ff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}



/* Style the related articles section */
.related-articles {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-left: 4px solid #2c7be5;
  font-size: 0.95em;
  color: #333;
  border-radius: 6px;
}

.related-articles a {
  color: #2c7be5;
  text-decoration: none;
}

.related-articles a:hover {
  text-decoration: underline;
}
/* === Link Colors === */
a {
  color: #9b59b6; /* Purple in light mode */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #7f8c8d; /* Slightly darker purple on hover */
  text-decoration: underline;
}

/* === Dark Mode Link Overrides === */
body.dark a {
  color: #a9cfeb; /* Light blue-purple for better visibility */
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
 

body.dark a:hover {
  color: #8ab4e8;
  text-decoration: underline;
  transition: color 0.3s ease;
}

/* Hide JSON-LD from view, but keep it for SEO */
script[type="application/ld+json"] {
  display: none;
}
.ad-hidden {
  display: none !important;
}

.ad-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
  z-index: 9999;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.ad-bottom .ad-hidden {
  display: none !important;
}
