/**
 * Additional Components Styles
 * 
 * @package Divi_Todalacocina
 */

/* ── PAGINATION ────────────────────────────────────────────────── */
.directory-pagination {
  margin: 60px 0 40px;
  text-align: center;
}

.pagination {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: var(--dtc-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination .page-numbers:hover {
  border-color: var(--dtc-red);
  color: var(--dtc-red);
}

.pagination .page-numbers.current {
  background: var(--dtc-red);
  border-color: var(--dtc-red);
  color: #fff;
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  pointer-events: none;
}

/* ── LIGHTBOX ──────────────────────────────────────────────────── */
.dtc-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.dtc-lightbox.active {
  opacity: 1;
}

.dtc-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #fff;
  color: #fff;
  font-size: 36px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ── SOCIAL ICONS ──────────────────────────────────────────────── */
.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dtc-light-gray);
  color: var(--dtc-dark);
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon.facebook {
  background: #1877f2;
  color: #fff;
}

.social-icon.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: #fff;
}

.social-icon.twitter {
  background: #1da1f2;
  color: #fff;
}

/* ── NO RESULTS ────────────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: var(--radius-md);
  margin: 40px auto;
}

.no-results h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--dtc-gray);
}

.no-results p {
  font-size: 18px;
  color: var(--dtc-gray);
}

/* ── RESTAURANTS COUNT ─────────────────────────────────────────── */
.restaurants-count {
  margin: 30px 0 20px;
}

.restaurants-count p {
  color: var(--dtc-gray);
  font-size: 16px;
}

/* ── STAR RATING ───────────────────────────────────────────────── */
.stars-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 16px;
  line-height: 1;
}

.star.full {
  color: var(--dtc-gold);
}

.star.half {
  color: var(--dtc-gold);
  opacity: 0.6;
}

.star.empty {
  color: #ddd;
}

.rating-number {
  font-weight: 600;
  color: var(--dtc-dark);
  font-size: 14px;
}

/* ── PRICE RANGE ───────────────────────────────────────────────── */
.price-range {
  font-size: 24px;
  color: var(--dtc-gold);
  font-weight: 700;
  letter-spacing: 2px;
}

/* ── RESPONSIVE UTILITIES ──────────────────────────────────────── */
@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .dtc-lightbox img {
    max-width: 95%;
  }
}

/* ── LOADING SPINNER ───────────────────────────────────────────── */
.dtc-loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--dtc-red);
  border-radius: 50%;
  animation: dtc-spin 1s linear infinite;
}

@keyframes dtc-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ── UTILITY CLASSES ───────────────────────────────────────────── */
.text-center {
  text-align: center !important;
}

.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: var(--spacing-xs) !important;
}
.mt-2 {
  margin-top: var(--spacing-sm) !important;
}
.mt-3 {
  margin-top: var(--spacing-md) !important;
}
.mt-4 {
  margin-top: var(--spacing-lg) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: var(--spacing-xs) !important;
}
.mb-2 {
  margin-bottom: var(--spacing-sm) !important;
}
.mb-3 {
  margin-bottom: var(--spacing-md) !important;
}
.mb-4 {
  margin-bottom: var(--spacing-lg) !important;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
