/* c:\Users\hamin\Local Sites\anhnguyenbabysitterlocal\app\public\wp-content\themes\bricks-child\assets\reviews-v2.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Nunito+Sans:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

.anb-reviews-page {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: #2C3440;
  background: #F6F7F9;
  min-height: 100vh;
}

.anb-reviews-top {
  max-width: 860px;
  margin: 0 auto;
  padding: 160px 32px 44px;
  text-align: center;
}

.anb-reviews-badge {
  display: inline-block;
  background: #E3F5F7;
  color: #147F8C;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.4px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
}

.anb-reviews-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -1.3px;
  color: #1B9AAA;
  margin: 20px 0 16px;
}

.anb-reviews-desc {
  font-size: 17px;
  line-height: 1.65;
  color: #6B7686;
  margin: 0 auto;
  max-width: 620px;
  text-wrap: pretty;
}

.anb-reviews-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 60px;
}

.anb-source-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}
@media (max-width: 768px) {
  .anb-source-stats {
    grid-template-columns: 1fr;
  }
}

.anb-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid #EAEDF1;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.anb-stat-card:hover {
  border-color: #CBD3DC;
}

.anb-stat-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #E8EAED;
}
.anb-stat-logo-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.anb-stat-info {
  min-width: 0;
}
.anb-stat-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #22303F;
}
.anb-stat-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 3px;
  font-size: 12px;
  color: #9AA3B0;
  font-weight: 600;
}

.anb-filters-wrapper {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 10px;
  background: rgba(246, 247, 249, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  margin-bottom: 30px;
  scroll-margin-top: 120px;
}

.anb-review-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.anb-scroll-hint { display: none; }

@keyframes anb-bounce-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@keyframes om-dot-pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.anb-filter-btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(12.5px, 3.3vw, 14.5px);
  padding: clamp(7px, 2vw, 9px) clamp(11px, 3vw, 15px);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  background: transparent;
  border: none;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

.anb-filter-btn:not([data-filter="all"])::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  margin-right: 6px;
  animation: om-dot-pulse 2s infinite ease-in-out;
}

.anb-filter-btn.active {
  color: var(--brand-color);
  background: color-mix(in srgb, var(--brand-color) 14%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand-color) 30%, transparent),
              0 4px 18px color-mix(in srgb, var(--brand-color) 18%, transparent);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--brand-color) 20%, transparent),
               0 0 8px color-mix(in srgb, var(--brand-color) 10%, transparent);
}

.anb-filter-btn:hover {
  color: var(--brand-color);
  background: color-mix(in srgb, var(--brand-color) 19%, transparent);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand-color) 50%, transparent),
              0 0 0 4px color-mix(in srgb, var(--brand-color) 10%, transparent),
              0 6px 22px color-mix(in srgb, var(--brand-color) 32%, transparent);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--brand-color) 20%, transparent),
               0 0 8px color-mix(in srgb, var(--brand-color) 20%, transparent),
               0 0 12px color-mix(in srgb, var(--brand-color) 10%, transparent);
}

/* Mobile responsive for filters */
@media (max-width: 720px) {
  .anb-filters-wrapper { padding-right: 0; }
  .anb-review-filters {
    padding-right: 40px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 5px;
    gap: 6px;
  }
  .anb-review-filters::-webkit-scrollbar {
    display: none;
  }
  
  .anb-scroll-hint {
      display: flex; position: absolute; right: 0; top: 0; bottom: 0; width: 50px;
      align-items: center; justify-content: center;
      background: linear-gradient(to right, rgba(246,247,249,0), rgba(246,247,249,1) 60%);
      pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
      border-top-right-radius: 12px; border-bottom-right-radius: 12px;
  }
  .anb-scroll-hint svg { animation: anb-bounce-right 1.5s infinite; margin-left: 10px; }

  .anb-filter-btn {
    white-space: nowrap;
    padding: 6px 10px !important;
  }
}

.anb-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  scroll-margin-top: 170px;
}
@media (max-width: 992px) {
  .anb-review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .anb-review-grid {
    grid-template-columns: 1fr;
  }
}

.anb-review-card {
  font-family: 'Roboto', Arial, sans-serif;
  border: 1px solid #E8EAED;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all .2s ease;
}
.anb-review-card:hover {
  border-color: #CBD3DC;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.anb-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.anb-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 17px;
  color: #5F6368;
  background: #F1F3F4;
}

.anb-review-author-info {
  min-width: 0;
  flex: 1;
}

.anb-review-author-name {
  font-weight: 500;
  font-size: 14px;
  color: #202124;
  letter-spacing: 0.1px;
}

.anb-review-author-meta {
  font-size: 12px;
  color: #70757A;
  font-weight: 400;
  margin-top: 1px;
}

.anb-review-source-logo {
  width: 20px;
  height: 20px;
  flex: none;
  object-fit: contain;
  display: block;
}

.anb-review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.anb-review-date {
  font-size: 12px;
  color: #70757A;
}

.anb-review-text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #3C4043;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.anb-review-text p, .anb-modal-text p { margin-bottom: 0.5em; }
.anb-review-text p:last-child, .anb-modal-text p:last-child { margin-bottom: 0; }

.anb-review-view-all {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #70757A;
}
.anb-review-view-all:hover {
  color: #202124;
}

.anb-review-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #E8EAED;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.anb-review-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #1E8E3E;
  text-decoration: none;
}
.anb-review-verified:hover {
  color: #146C2E;
}

.anb-review-original {
  font-size: 12px;
  font-weight: 500;
  color: #1A73E8;
  text-decoration: none;
}
.anb-review-original:hover {
  color: #174EA6;
}

.anb-reviews-more {
  text-align: center;
  margin-top: 36px;
}

.anb-reviews-more-btn {
  display: inline-block;
  border: 1.5px solid #D7DDE5;
  color: #4A5464;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
}
.anb-reviews-more-btn:hover {
  border-color: #1B9AAA;
  color: #1B9AAA;
}

.anb-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.anb-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border-radius: 6px; background: #fff; color: #3A4452; font-weight: 600; text-decoration: none; border: 1px solid #E1E6EC; transition: all 0.2s ease; }
.anb-pagination .page-numbers:hover { border-color: #FF7A2F; color: #FF7A2F; }
.anb-pagination .page-numbers.current { background: #FF7A2F; color: #fff; border-color: #FF7A2F; }

.anb-review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(20,24,31,0.5);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.anb-review-modal-overlay.active {
  display: flex;
}

.anb-review-modal {
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 30px 32px 28px;
  box-shadow: 0 24px 60px rgba(20,24,31,0.28);
  text-align: left;
}

.anb-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.anb-modal-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #4A5464;
  background: #EEF1F5;
}

.anb-modal-author {
  flex: 1;
  min-width: 0;
}

.anb-modal-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #1A1F27;
}

.anb-modal-meta {
  font-size: 13px;
  color: #9AA3B0;
  font-weight: 600;
  margin-top: 2px;
}

.anb-modal-close {
  width: 32px;
  height: 32px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: #F1F3F6;
  color: #FF7A2F;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  padding-bottom: 2px;
}
.anb-modal-close:hover {
  background: #E4E8ED;
  color: #F06A1F;
}

.anb-modal-source {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
}

.anb-modal-source-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #6B7686;
}
.anb-modal-source-label img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.anb-modal-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: #3A4452;
  text-wrap: pretty;
}

.anb-modal-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #F0F2F5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.anb-modal-date {
  font-size: 12.5px;
  color: #9AA3B0;
  font-weight: 600;
}

.anb-modal-cta {
  display: inline-block;
  border: 1.5px solid #D7DDE5;
  color: #4A5464;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
}
.anb-modal-cta:hover {
  border-color: #1B9AAA;
  color: #1B9AAA;
}

.anb-leave-review {
  background: #fff;
  border-top: 1px solid #EAEDF1;
  border-bottom: 1px solid #EAEDF1;
}

.anb-leave-review-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 60px 32px 64px;
  text-align: center;
}

.anb-leave-review-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: #1A1F27;
  margin: 0 0 8px;
}

.anb-leave-review-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #6B7686;
  margin: 0 0 22px;
  text-wrap: pretty;
}

.anb-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #14181F;
  color: #fff;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20,24,31,0.22);
  transition: transform .15s ease, background .15s ease;
}
.anb-write-btn:hover {
  background: #24303F;
  transform: translateY(-1px);
}

.anb-write-dropdown {
  margin-top: 26px;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.anb-write-dropdown.active {
  display: flex;
}

.anb-write-dropdown-label {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: #9AA3B0;
}

.anb-write-primary {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid #E4E8ED;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  box-shadow: 0 1px 3px rgba(24,39,75,0.05);
  transition: border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.anb-write-primary:hover {
  border-color: #C6CED8;
  box-shadow: 0 6px 16px rgba(24,39,75,0.09);
  color: inherit;
}

.anb-write-primary-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #E8EAED;
}
.anb-write-primary-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.anb-write-primary-info {
  flex: 1;
  min-width: 0;
}
.anb-write-primary-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #1A1F27;
}
.anb-write-primary-desc {
  font-size: 13px;
  color: #8B95A3;
  margin-top: 1px;
}

.anb-write-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.anb-write-secondary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #E4E8ED;
  border-radius: 14px;
  background: #FBFCFD;
  color: inherit;
  transition: border-color .15s ease, background .15s ease;
  text-decoration: none;
}
.anb-write-secondary-item:hover {
  border-color: #C6CED8;
  background: #fff;
  color: inherit;
}
.anb-write-secondary-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #E8EAED;
}
.anb-write-secondary-logo img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.anb-write-secondary-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1A1F27;
}

.anb-write-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #A2AAB6;
}

.anb-booking-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 32px 96px;
  text-align: center;
}
.anb-booking-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.8px;
  color: #22303F;
  margin: 0 0 12px;
}
.anb-booking-desc {
  font-size: 16px;
  color: #6B7686;
  margin: 0 0 26px;
}
.anb-booking-btn {
  display: inline-block;
  background: #FF7A2F;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255,122,47,0.3);
  text-decoration: none;
}
.anb-booking-btn:hover {
  background: #F06A1F;
  color: #fff;
}

.anb-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #14181F;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  transition: all .2s ease;
}
.anb-modal-nav:hover {
  background: #FF7A2F;
  color: #fff;
}
.anb-modal-prev {
  left: 20px;
}
.anb-modal-next {
  right: 20px;
}
@media (max-width: 768px) {
  .anb-modal-nav {
    display: none;
  }
}

/* Leave Review V2 Animations */
@keyframes om-star-wave { 0%, 62%, 100% { transform: translateY(0) scale(1) rotate(0deg); } 22% { transform: translateY(-11px) scale(1.28) rotate(-10deg); } 40% { transform: translateY(2px) scale(0.94) rotate(4deg); } }
@keyframes om-glow { 0%, 100% { box-shadow: 0 8px 22px rgba(255,122,47,0.34), 0 0 0 0 rgba(255,122,47,0.45); } 55% { box-shadow: 0 14px 34px rgba(255,122,47,0.46), 0 0 0 18px rgba(255,122,47,0); } }
@keyframes om-shine { 0% { transform: translateX(-130%) skewX(-18deg); } 55%, 100% { transform: translateX(230%) skewX(-18deg); } }
@keyframes om-aurora { 0% { transform: translate(0, 0) scale(1); opacity: .85; } 33% { transform: translate(34px, -26px) scale(1.16); opacity: 1; } 66% { transform: translate(-22px, 18px) scale(0.92); opacity: .7; } 100% { transform: translate(0, 0) scale(1); opacity: .85; } }
@keyframes om-sparkle { 0%, 100% { transform: translateY(0) scale(0.5); opacity: 0; } 30% { transform: translateY(-14px) scale(1); opacity: 1; } 70% { transform: translateY(-30px) scale(0.7); opacity: .35; } }
@keyframes om-sheen { 0% { background-position: -220% 0; } 100% { background-position: 220% 0; } }
@keyframes om-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* V2 CTA Classes */
.anb-write-btn-v2:hover {
    filter: brightness(1.07);
    transform: translateY(-3px) scale(1.035);
}
.anb-write-btn-v2:active {
    transform: translateY(-1px) scale(0.99);
}
.anb-btn-shine {
    position: absolute; top: 0; left: 0; width: 42%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
    animation: om-shine 3.4s ease-in-out infinite; pointer-events: none;
    z-index: 1;
}

.anb-write-platform-primary:hover {
    border-color: #C6CEd8 !important;
    box-shadow: 0 6px 16px rgba(24,39,75,0.09) !important;
}
.anb-write-platform-secondary:hover {
    border-color: #C6CED8 !important;
    background: #fff !important;
}

@media (max-width: 767px) {
  .anb-review-modal-overlay {
    display: none !important; /* Đảm bảo không hiện popup trên mobile */
  }
  .anb-review-card {
    transition: all 0.3s ease;
  }
  .anb-review-card.expanded .anb-review-text {
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
  }
  .anb-review-card.expanded .anb-review-view-all {
    display: none !important;
  }
}

#leave-review {
  scroll-margin-top: 140px;
}

/* Mobile Responsiveness for Write Review Buttons */
@media (max-width: 767px) {
  .anb-write-secondary-grid {
    grid-template-columns: 1fr;
  }
  .anb-write-primary {
    padding: 7px 14px;
    gap: 12px;
  }
  .anb-write-secondary-item {
    padding: 7px 14px;
    gap: 12px;
  }
  .anb-write-primary-logo,
  .anb-write-secondary-logo {
    width: 32px;
    height: 32px;
  }
  .anb-write-primary-logo img {
    width: 18px;
    height: 18px;
  }
}
