/* Dental Clinic Theme – Grayscale UI (usable, high-contrast) */
:root {
  --clr-bg: #ffffff;
  --clr-fg: #111111;
  --clr-muted: #6b6b6b;
  --clr-border: #d4d4d4;
  --clr-soft: #f7f7f7;
  --clr-soft-2: #f0f0f0;
  --clr-hr: #e5e5e5;
  --focus: #111111;
  --container: 1140px;
  --radius: 8px;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-m: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Base/reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--clr-bg);
  color: var(--clr-fg);
  font-family: "Sora", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Voliteľné: odkomentujte, ak chcete grayscale aj pre média */
/* img, video { filter: grayscale(100%); } */

/* Links and focus */
a {
  color: var(--clr-fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px dashed var(--focus);
  outline-offset: 2px;
}

/* Screen reader text */
.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.listing-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Header, Nav, Footer */
.site-header {
  background: var(--clr-soft);
  border-bottom: 1px solid var(--clr-hr);
}

.site-header .inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--clr-border);
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
}

nav[aria-label="Primary"] ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

nav[aria-label="Primary"] a {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 6px;
}

nav[aria-label="Primary"] a:hover,
nav[aria-label="Primary"] a:focus-visible {
  background: none;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--clr-hr);
  background: var(--clr-soft);
}

.site-footer .inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hero */
.hero {
  padding: 24px 0;
  background: var(--clr-soft) url('/wp-content/uploads/2025/08/BG-breadcumnbs.svg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--clr-hr);
}

.hero h1 {
  margin: 0;
  line-height: 40px;
  font-weight: 600;
}

.breadcrumbs {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--clr-muted);
}

.breadcrumbs a {
  color: var(--clr-muted);
  border-bottom: 1px dashed var(--clr-border);
}

.breadcrumbs a:hover {
  color: var(--clr-fg);
  border-bottom-color: var(--clr-fg);
}

/* Cards, badges, sections */
.card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: unset;
}

.card .title {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 600;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--clr-border);
  background: #eeeeee;
  color: #333333;
  font-size: 12px;
  border-radius: 999px;
}

.section {
  margin: 24px 0;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

/* Forms */
.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.controls input,
.controls select,
.controls button,
button,
input[type="submit"] {
  height: 40px;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--clr-fg);
  line-height: 1;
}

.controls select {
  padding-right: 28px;
  background: #ffffff;
}

.controls button,
button,
input[type="submit"] {
  cursor: pointer;
}

.controls button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--clr-soft-2);
}

.controls button:active,
button:active,
input[type="submit"]:active {
  background: #e7e7e7;
}

.controls [disabled],
button[disabled],
input[disabled] {
  background: #f5f5f5;
  color: var(--clr-muted);
  cursor: not-allowed;
}

/* Tables */
.table-like {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-like th,
.table-like td {
  border-top: 1px solid var(--clr-border);
  padding: 10px 12px;
  text-align: left;
}

.table-like thead th {
  background: #f9f9f9;
  border-top: none;
}

.table-like tbody tr:nth-child(odd) {
  background: #fcfcfc;
}

/* Pagination */
.pagination {
  margin: 24px 0;
}

.pagination .page-numbers {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  margin: 0 4px;
  padding: 0 10px;
  /* border: 1px solid var(--clr-border); */
  border-radius: 6px;
  color: var(--clr-fg);
  /* background: #fff; */
  /* border: 1px solid #e0e0e0; */
  background: transparent !important;
  border: unset !important;
  list-style-type: none !important;
}

.pagination .page-numbers.current {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  /* border-color: #667eea; */
  background: #4ecdc4 !important;
  border-color: #4ecdc4 !important;
  font-weight: 600;
}

.pagination .page-numbers:hover {
  /* background: #f8f9fa; */
  /* border-color: #667eea; */
  /* color: #667eea; */
  /* transform: translateY(-1px); */
  background: transparent !important;
  border-color: #4ecdc4 !important;
  color: #4ecdc4 !important;
  transform: unset !important;
  text-decoration: none;
}

.pagination .page-numbers.prev:hover, .pagination .page-numbers.next:hover {
  /* background: #667eea; */
  /* color: white; */
  /* border-color: #667eea; */
  background: transparent !important;
  color: #4ecdc4 !important;
  border-color: #4ecdc4 !important;
}

@media (max-width: 768px) {
  .pagination .page-numbers.prev, .pagination .page-numbers.next {
    display: none !important;
  }
}

/* Sidebar */
.sidebar {
  border-left: 1px solid var(--clr-hr);
  padding-left: 16px;
}

/* HR, small elements */
hr {
  border: 0;
  border-top: 1px solid var(--clr-hr);
  margin: 24px 0;
}

small,
.meta {
  color: var(--clr-muted);
}

/* Page-specific refinements */

/* Home (front page) */
body.home .section {
  margin-top: 32px;
}

body.home .listing-grid .card {
  transition: background 0.15s ease-in-out;
}

body.home .listing-grid .card:hover {
  background: #fafafa;
}

/* Service Cards with Icons */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.service-card {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  transition: background 0.15s ease-in-out;
}

.service-card .service-description {
  margin-bottom: 0px !important;
}

.service-card:hover {
  background: #fafafa;
}

.service-icon {
  flex-shrink: 0;
  margin-right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-icon .icon {
  font-size: 24px;
  color: var(--clr-muted);
}

.service-content {
  flex: 1;
  margin-left: 8px !important;
}

.service-title {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-description {
  color: var(--clr-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Clinics archive and filtered listings */
body.post-type-archive-dcd_clinic .controls {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-s);
}

body.post-type-archive-dcd_clinic .listing-grid article.card {
  height: 100%;
}

/* Single clinic */
body.single-dcd_clinic .card header h1 {
  margin-bottom: 8px;
}

body.single-dcd_clinic #map+.card,
body.single-dcd_clinic .map-placeholder {
  height: 280px;
  background: #e5e5e5;
  border: 1px dashed var(--clr-border);
  border-radius: var(--radius);
}

/* Single doctor */
body.single-dcd_doctor .badge {
  background: #efefef;
}

/* Placeholder pages (Cities, Services, Clinics, Doctors) */
body.page-template-page-cities .listing-grid article.card,
body.page-template-page-services .listing-grid article.card,
body.page-template-page-clinics .listing-grid article.card,
body.page-template-page-doctors .listing-grid article.card {
  height: 100%;
}

/* Utilities */
.center {
  text-align: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0;
  }
}

@media (max-width: 1050px) {
  .site-header.is-active nav[aria-label="Primary"] ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
  }

  .site-header.is-active .add-clinic-section {
    display: flex;
    position: fixed;
    bottom: 0;
    padding: 16px;
    background: #fff;
    width: 100%;
    justify-content: center;
    align-items: center;
    max-width: unset;
  }

  .site-header.is-active .site-header {
    background: #fff;
  }

}

@media (max-width: 999px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  .card {
    max-width: 100% !important;
  }
  
  .service-content {
    display: block !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

.breadcrumbs {
  font-size: 0.75rem;
}

.clinic-detail-image {
  max-width: 290px;
}

.card {
  max-width: 810px;
}

.meta {
font-size: 12px;
}
.card {
padding: 0;
}
.section {
margin: 24px 1rem;
}
.card {
padding: 1rem;
}

.card {
border: none;
}
.sidebar {
border-left: none;
}

.card {
background: none;
}

.insurance-filters {
  display: grid;
  gap: 4px;
}

@media (max-width: 768px) {
  .hero H1 {
    font-size: 24px;
  line-height: normal;
  }

  .mobile-insurance-providers h3 {
  margin-top: 0 !important;
}

  /* Mobile opening hours styling */
  .mobile-opening-hours .opening-hours-list li {
    line-height: 1.5 !important;
    color: #4b5563 !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
  }

  /* Hide sidebar sections on mobile */
  .insurance-providers {
    display: none !important;
  }

  .sidebar .opening-hours {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .clinic-photos-grid {
    grid-template-columns: auto !important;
  }
}

/* Google Reviews Section */
.reviews-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reviews-header h2 {
  margin: 0;
}

.reviews-header .google-rating-summary {
  margin-bottom: 0;
}

.google-rating-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.google-logo svg {
  width: 20px;
  height: 20px;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 1rem;
}

.rating-stars .star {
  color: #FFB800;
  position: relative;
  display: inline-block;
}

.rating-stars .star.filled {
  color: #fbbf24;
}

.rating-stars .star.empty {
  color: #e5e7eb;
}

.rating-stars .star.partial {
  position: relative;
  display: inline-block;
  color: transparent;
}

.rating-stars .star.partial .star-bg {
  color: #e5e7eb;
  position: absolute;
  top: 0;
  left: 0;
}

.rating-stars .star.partial .star-fill {
  color: #fbbf24;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}

.reviews-count {
  color: #6b7280;
  font-size: 0.875rem;
  white-space: nowrap;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-s);
}

.review-item:hover {
  background: #e5e7eb !important;
  text-decoration: none !important;
}

.review-item:visited {
  color: inherit;
}

.hidden-review {
  display: none;
}

.reviews-show-more {
  text-align: left;
  margin-bottom: 1rem;
}

.show-more-reviews {
  color: #16697A;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.show-more-reviews span {
  text-decoration: none;
}

.show-more-reviews:hover {
  text-decoration: underline;
}

.remaining-reviews {
  margin-left: 0.5rem;
  opacity: 0.8;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-fg);
  margin: 0;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 0.9rem;
}

.review-rating .star.filled {
  color: #fbbf24;
}

.review-rating .star.empty {
  color: #e5e7eb;
}

.review-date {
  color: var(--clr-muted);
  font-size: 0.875rem;
}

.review-content {
  margin-top: 0.5rem;
}

.review-content p {
  margin: 0;
  line-height: 1.6;
  color: var(--clr-fg);
}

@media (max-width: 768px) {
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .review-author {
    gap: 0.75rem;
  }
  
  .author-photo {
    width: 40px;
    height: 40px;
  }
  
  .review-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Photos Gallery Section */
.photos-gallery {
  margin-top: 1rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.photos-grid > div {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  transition: transform 0.2s ease;
}

.photos-grid > div:hover {
  transform: scale(1.02);
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gallery-photo:hover {
  opacity: 0.9;
}

.show-more-photos {
  color: #16697A;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.show-more-photos:hover {
  text-decoration: underline;
}

.remaining-count {
  margin-left: 0.5rem;
    opacity: 0.8;
}

.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

.hidden-desktop,
.hidden-mobile {
  display: none;
}

/* Lightbox Styles */
.photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 1);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 2rem;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 10001;
}

@media (max-width: 768px) {
  .photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: inline-flex;
  }
  
  .hidden-mobile {
    display: none;
  }
  
  .hidden-desktop {
    display: block;
  }
  
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-counter {
    bottom: 10px;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}


.card {
  background: #fff;
    border: 1px solid #e5e7eb;
}

.sidebar .card {
  background: none;
    border: none;
}

.latest-review, .appointment-section, .sidebar-section.opening-hours, .sidebar-map-section, .social-media-section, .insurance-providers {
  border: 1px solid #e5e7eb;
}

.insurance-providers {
    margin-bottom: 16px !important;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
}

article.dcd_clinic {
  margin-top: 1rem;
}

#recenzie {
  padding-top: 100px;
    margin-top: -76px;
}

/* Doctor Cards Styling */
.doctors-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doctor-card-full {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.doctor-card-full .doctor-image {
  flex-shrink: 0;
}

.doctor-card-full .doctor-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.doctor-card-full .doctor-content {
  flex: 1;
}

.doctor-card-full .doctor-name {
  margin: 0;
}

.doctor-card-full .doctor-bio {
  margin-bottom: 1rem;
}

.doctor-card-full .doctor-bio p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
}

.doctor-card-full .doctor-experience {
  margin: 0;
  font-weight: 500;
  color: #16697A;
  font-size: 14px;
}

.doctor-card-full .doctor-specializations {
  margin-top: 0.5rem;
}

.doctor-card-full .specs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doctor-card-full .spec-badge {
  background-color: #4ECDC430;
  color: #16697A;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .doctor-card-full {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .doctor-card-full .doctor-image {
    margin-bottom: 1rem;
  }
  
  .doctor-card-full .specs-badges {
    justify-content: flex-start !important;
  }
  
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  .card {
    max-width: 100% !important;
    padding: 1rem 12px !important;
  }
  
  .service-content {
    display: block !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }
  
  .clinic-featured-image {
    aspect-ratio: 16 / 10 !important;
  }
  
  .clinic-detail-image {
    aspect-ratio: 16 / 10 !important;
    max-width: auto !important;
  }
  
  .section {
    margin: 32px 0 !important;
  }
  
  .section h2 {
    font-size: 1.7rem !important;
  }
  
  .doctor-card-full {
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  
  .doctor-card-full .doctor-photo {
    width: 100px !important;
    height: 100px !important;
  }
  
  .doctor-card-full .spec-badge {
    font-size: 10px !important;
  }
  
  .reviews-header {
    margin-bottom: 8px !important;
  }
  
  .review-meta {
    flex-direction: row !important;
    align-items: center !important;
  }
  
  .show-more-photos {
    border: none !important;
    padding: 0 !important;
  }
}