/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

/* Variables - Global Design Tokens */
:root {
  /* Colors */
  --green-light: #F0F9F3;
  --green-dark: #4D9E76;
  --black: #000000;
  --gray: #666666;
  --gray-light: #eeeeee;
  --white: #ffffff;
  
  /* Fonts */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
}

/* Header */
header {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--gray-light);
  background: var(--green-light);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
header nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  color: var(--green-dark);
}

/* Klinik Finder Header */
.klinik-finder-page .special-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "links brand spacer";
  align-items: center;
  width: 100%;
}

.klinik-finder-page .nav-left,
.klinik-finder-page .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.klinik-finder-page .nav-left {
  grid-area: links;
  justify-content: flex-start;
}

.klinik-finder-page .nav-right {
  grid-area: spacer;
  justify-content: flex-end;
}

.klinik-finder-page .brand-link {
  grid-area: brand;
  justify-self: center;
}

.klinik-finder-page .desktop-only {
  display: inline-flex;
}

.klinik-finder-page .mobile-only {
  display: none;
}

@media (max-width: 1024px) {
  .klinik-finder-page .desktop-only {
    display: none;
  }

  .klinik-finder-page .mobile-only {
    display: inline-flex;
  }
}

/* Main Content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: var(--black);
  text-align: center;
}

.author-image {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.content {
  margin: 2rem 0;
}
.content p { margin-bottom: 1rem; }
.content h3 { 
  margin: 2rem 0 1rem; 
  color: var(--green-dark);
}
.content ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.content strong { font-weight: 600; }
.content hr { display: none; }

/* Product Hero */
.product-hero {
  background: var(--green-light);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  text-align: center;
}
.product-video {
  margin-bottom: 1.5rem;
}
.product-video video {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-md);
  display: block;
  margin: 0 auto;
}
.product-images {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.product-images img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid var(--white);
  cursor: pointer;
  transition: transform 0.2s;
}
.product-images img:hover {
  transform: scale(1.05);
}
.product-hero h2 { 
  font-size: 1.5rem; 
  margin-bottom: 0.5rem;
  color: var(--black);
}
.product-hero .price { 
  font-size: 1.25rem; 
  color: var(--gray); 
  margin-bottom: 0.5rem; 
}
.product-hero .tax-note {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
}
.product-hero .btn {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}
.product-hero .btn:hover { 
  background: #3d7e5e; 
}

.product-description {
  margin: 1.5rem auto 0;
  max-width: 420px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray);
}

/* Product Zoom Overlay */
.product-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.product-zoom-overlay.active {
  display: flex;
}
.product-zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.product-zoom-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

/* Product Hero Mobile */
@media (max-width: 600px) {
  .product-hero {
    padding: 1.5rem 1rem;
    margin: 2rem 0;
  }
  .product-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    justify-items: center;
  }
  .product-images img {
    width: 100%;
    max-width: 150px;
    height: auto;
    aspect-ratio: 1;
  }
  .product-description {
    font-size: 0.95rem;
  }
  .product-zoom-overlay img {
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 4rem);
  }
}

/* Testimonials */
.testimonials-hero {
  margin: 3rem 0;
}
.testimonials-hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--black);
}
.testimonials-hero blockquote {
  background: var(--green-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border-left: 4px solid var(--green-dark);
}
.testimonials-hero blockquote p {
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--black);
}
.testimonials-hero cite {
  font-size: 0.9rem;
  color: var(--gray);
  font-style: normal;
}
.testimonials-hero .stars {
  margin-bottom: 0.5rem;
}
.testimonials-hero .stars::before {
  content: "★★★★★";
  color: var(--green-dark);
  font-size: 1.1rem;
}

/* FAQ */
.faq-hero {
  margin: 3rem 0;
  border-top: 1px solid var(--gray-light);
}
.faq-hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--black);
}
.faq-hero details {
  border-bottom: 1px solid var(--gray-light);
}
.faq-hero summary {
  padding: 1.25rem 2.5rem 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  background: var(--white);
  position: relative;
  list-style: none;
}
.faq-hero summary::-webkit-details-marker {
  display: none;
}
.faq-hero summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--black);
}
.faq-hero details[open] summary::after {
  content: '−';
}
.faq-hero summary:hover {
  color: var(--green-dark);
}
.faq-hero details p {
  padding: 0 0 1.25rem 0;
  color: var(--gray);
  line-height: 1.7;
}
.faq-hero details p strong {
  color: var(--black);
}

/* Footer */
footer {
  border-top: 1px solid var(--gray-light);
  padding: 2rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 3rem;
  background: var(--green-light);
}
footer a {
  color: var(--green-dark);
  margin: 0 0.5rem;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.related-pages {
  padding: 2rem;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.related-pages span {
  font-weight: 500;
  color: var(--black);
}
.related-pages a {
  color: var(--green-dark);
  text-decoration: none;
}
.related-pages a:hover {
  text-decoration: underline;
}
.related-pages a:not(:last-child)::after {
  content: '·';
  margin-left: 0.5rem;
  color: var(--gray);
}

/* Disclaimer */
.disclaimer {
  padding: 1rem 2rem;
  font-size: 0.7rem;
  color: var(--gray);
  text-align: center;
  background: var(--green-light);
  line-height: 1.4;
}
.disclaimer p {
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}

/* Blog Listing */
.blog-listing {
  padding: 2rem 1rem;
  background: var(--green-light);
}

.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
}

.blog-card {
  display: flex !important;
  flex-direction: column !important;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.blog-card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: 1rem;
  text-align: center;
}

.blog-card-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  line-height: 1.3;
  display: block;
}

.blog-card-link:hover {
  color: var(--black);
  text-decoration: underline;
}

/* Klinik Finder Page */
.klinik-finder-page {
  background: #f4f4f4;
}
.klinik-finder-page #map {
  height: 55vh;
  width: 100%;
  z-index: 1;
  margin-bottom: 1rem;
}
.klinik-finder-page .popup-content {
  min-width: 220px;
}
.klinik-finder-page .popup-content h3 {
  margin: 0 0 5px;
  color: #2c3e50;
  font-size: 16px;
}
.klinik-finder-page .status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.klinik-finder-page .status-24h {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.klinik-finder-page .status-standard {
  background: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}
.klinik-finder-page .btn-call,
.klinik-finder-page .btn-route {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 8px;
  text-align: center;
  border-radius: 4px;
  margin-top: 8px;
  font-weight: bold;
}
.klinik-finder-page .btn-call {
  background: #d32f2f;
}
.klinik-finder-page .btn-route {
  background: #3498db;
  font-size: 0.9em;
}
.klinik-finder-page .clinic-list {
  padding: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.klinik-finder-page .clinic-entry {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.klinik-finder-page .clinic-entry small {
  color: #555;
}
.klinik-finder-page .clinic-entry-24h {
  border-left: 4px solid #28a745;
  background: #f0faf3;
}
.klinik-finder-page .badge-24h {
  display: inline-block;
  background: #28a745;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}
.klinik-finder-page .status-badge.status-regular {
  background: #e2e8f0;
  color: #475569;
}
.klinik-finder-page .list-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 8px;
  padding: 0 12px;
}
.klinik-finder-page .legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.klinik-finder-page .legend-dot-24h {
  background: #28a745;
}
.klinik-finder-page .legend-dot-regular {
  background: #2b7cff;
  margin-left: 8px;
}
.klinik-finder-page .filter-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
}
.klinik-finder-page .content {
  text-align: center;
}
.klinik-finder-page .filter-row input {
  transform: none;
}
.klinik-finder-page .filter-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.klinik-finder-page .postcode-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.klinik-finder-page .postcode-row input[type="text"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 180px;
  font-size: 16px;
}
.klinik-finder-page .postcode-row button {
  padding: 7px 12px;
  border: none;
  border-radius: 4px;
  background: #2c3e50;
  color: var(--white);
  cursor: pointer;
}
.klinik-finder-page .postcode-row button:disabled {
  opacity: 0.7;
  cursor: default;
}
.klinik-finder-page .postcode-hint {
  font-size: 12px;
  color: #666;
  text-align: center;
}
.klinik-finder-page .share-panel {
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  max-width: 900px;
  text-align: center;
}
.klinik-finder-page .share-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}
.klinik-finder-page .share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.klinik-finder-page .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-light);
  background: var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.klinik-finder-page .share-btn:hover {
  background: #e2f4ea;
}
.klinik-finder-page .share-hint {
  font-size: 0.9rem;
  color: var(--gray);
  min-height: 1.2rem;
}
.klinik-finder-page .embed-box {
  margin-top: 1rem;
  text-align: left;
}
.klinik-finder-page .embed-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.klinik-finder-page .embed-box textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
}

@media (min-width: 768px) {
  .klinik-finder-page #map {
    height: 65vh;
  }
  .klinik-finder-page .clinic-list {
    padding: 20px;
  }
  .klinik-finder-page .clinic-entry {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .klinik-finder-page .filter-row {
    margin: 12px 0 20px;
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .klinik-finder-page #map {
    height: 70vh;
  }
}
.distance-tooltip {
  background: #155724;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.distance-tooltip::before {
  border-right-color: #155724;
}

