/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


:root {
  --primary: #B90F1A;
  --lista-primary: #000000;
  --charcoal: #121212;
  --soft-black: #1A1A1A;
  --grey: #757575;
  --bg-color: #f6f6f6;
  --shop-color: #128C7E;
}

/* NEARME BOTTOM SHEET RELATED */

.nearme{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background-color: var(--lista-primary) !important;
  color: #ffffff !important;
  border-radius: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}
.nearme-container{
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem;
}

/* Radar pulse on the "Use my location" button (CSS rebuild of ripple.json: no Lottie player needed).
   Only transform/opacity animate; runs 5 cycles (~16s) then stops. */
.nearme-pulse {
  position: relative;
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.nearme-pulse::before,
.nearme-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--shop-color);
  border-radius: 50%;
  opacity: 0;
  animation: nearme-ring 3.2s ease-out 50;
}
.nearme-pulse::after {
  animation-delay: 1.6s;
}
.nearme-pulse > i {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--shop-color);
  animation: nearme-dot 3.2s ease-in-out 5;
}
@keyframes nearme-ring {
  from { transform: scale(0.3); opacity: 1; }
  to   { transform: scale(1.8); opacity: 0; }
}
@keyframes nearme-dot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .nearme-pulse::before,
  .nearme-pulse::after,
  .nearme-pulse > i { animation: none; }
}

/* Repeat of the near-me call after the card list (pages with more shops than cards) */
.nearme-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  margin: 0.5rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
}
.nearme-end-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
}
.nearme-end-cta {
  width: 100%;
  background-color: var(--lista-primary);
  border-radius: 0.5rem;
}

.ct-page-wrapper{
  display: flex;
  background-color: var(--bg-color);
  flex-direction: column;
  padding: 0 0.5rem;
}

/* buttons/inputs don't inherit font-family by default */
.ct-page-wrapper :is(button, input, select, textarea) {
  font-family: inherit;
}

/** DISCLAIMER RELATED */

.disclaimer {
  color: var(--soft-black);
  display: block;
  text-align: center;
  line-height: 1.1;
  font-size: x-small;
  margin-top: 0 !important;
}


/** RESULTS RELATED */
#results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
  position: relative;
}



/* FAQ RELATED*/

.faq {
  margin: 1rem 0;
}

.faq-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq summary {
  font-size: 1rem;
  color: var(--charcoal) !important;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0.75rem 1rem;
  color: var(--soft-black);
  font-weight: 300;
  background-color: #ffffff;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Limit width to 480px like a mobile even in wide screen */
body {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* BUTTON */
.cta-button,
.cta-button-outline {
  height: 2.5rem;
  padding: 0.25rem 1rem;
  border-radius: 99px;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 0.05rem 0.05rem rgba(0, 0, 0, 0.1);
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background-color 0.05s ease, transform 0.1s ease;
  outline: none !important;
}

.cta-button {
  background-color: var(--primary);
  color: #ffffff !important;
  border: none !important;
}

.cta-button-outline {
  background-color: #ffffff;
  color: var(--primary);
  border: 0.5px solid var(--primary);
}

.cta-button.pressed,
.cta-button-outline.pressed {
  filter: brightness(0.85);
  color: white !important;
  transform: scale(0.95);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

/* Links that should look like plain content */
.no-underline {
  text-decoration: none !important;
  color: inherit;
  outline: none !important;
}

/** biz-card styling - mirrors chotu-react StoreCard.css / VipCrown.css */
.biz-card {
  --biz-card-shadow: 0 2px 8px rgba(18, 140, 126, 0.12);
  --biz-card-secondary: var(--grey);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: auto !important;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #000000;
  border-radius: 0.75rem;
  box-shadow: var(--biz-card-shadow);
  line-height: 1.5;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.biz-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(18, 140, 126, 0.18);
}

.biz-card:active {
  transform: scale(0.99);
}

.biz-card:focus-visible {
  outline: 2px solid var(--lista-primary);
  outline-offset: 2px;
}

.biz-dp {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  background: #eee url('https://i.chotu.com/DND/shop-dp.png') center / cover no-repeat;
  /* no src / broken image: hide alt text so only the placeholder shows */
  font-size: 0;
  color: transparent;
}

.biz-card-right {
  flex: 1;
  min-width: 0;
}

/* VIP crown: gold circle with the icon inside (mirrors chotu-react VipCrown.css).
   Used in the card title row and the nearme VIP legend. */
.crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
  border-radius: 50%;
  background: #B8860B;
  color: #ffffff;
}

.biz-title {
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biz-address {
  display: block;
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* FLAT CARD MARKUP (DOM-size reduction).
   New cards: .biz-card > img.biz-dp + .biz-card-right > (span.biz-title, p.biz-address).
   Arrow and VIP crown are drawn with pseudo-elements instead of <svg> nodes.
   The old-markup rules above (.biz-card-left, .biz-title-row, .biz-card-arrow, svg.crown)
   stay until every crosstab has been regenerated, then can be deleted. */
.biz-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 5.5rem;
}

.biz-card > .biz-dp {
  flex-shrink: 0;
}

.biz-card-right > .biz-title {
  display: block;
}

/* arrow (icon-north-east); skipped on old markup that still has the <svg> arrow */
.biz-card:not(:has(.biz-card-arrow))::after {
  content: "";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--shop-color);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M680-624 244-188Q233-177 216-177Q199-177 188-188Q177-199 177-216Q177-233 188-244L624-680H400Q383-680 371.5-691.5Q360-703 360-720Q360-737 371.5-748.5Q383-760 400-760H720Q737-760 748.5-748.5Q760-737 760-720V-400Q760-383 748.5-371.5Q737-360 720-360Q703-360 691.5-371.5Q680-383 680-400Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M680-624 244-188Q233-177 216-177Q199-177 188-188Q177-199 177-216Q177-233 188-244L624-680H400Q383-680 371.5-691.5Q360-703 360-720Q360-737 371.5-748.5Q383-760 400-760H720Q737-760 748.5-748.5Q760-737 760-720V-400Q760-383 748.5-371.5Q737-360 720-360Q703-360 691.5-371.5Q680-383 680-400Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* VIP crown: gold circle + white crown (icon-crown), same look as svg.crown */
.biz-card--vip .biz-title::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.25rem;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Ccircle cx='480' cy='-480' r='480' fill='%23B8860B'/%3E%3Cpath fill='%23fff' fill-rule='evenodd' transform='translate(480 -480) scale(.667) translate(-480 480)' d='M240 -160Q223 -160 211.5 -171.5Q200 -183 200 -200Q200 -217 211.5 -228.5Q223 -240 240 -240H720Q737 -240 748.5 -228.5Q760 -217 760 -200Q760 -183 748.5 -171.5Q737 -160 720 -160ZM268 -300Q239 -300 216.5 -319Q194 -338 189 -367L149 -621Q147 -621 144.5 -620.5Q142 -620 140 -620Q115 -620 97.5 -637.5Q80 -655 80 -680Q80 -705 97.5 -722.5Q115 -740 140 -740Q165 -740 182.5 -722.5Q200 -705 200 -680Q200 -673 198.5 -667Q197 -661 195 -656L320 -600L445 -771Q434 -779 427 -792Q420 -805 420 -820Q420 -845 437.5 -862.5Q455 -880 480 -880Q505 -880 522.5 -862.5Q540 -845 540 -820Q540 -805 533 -792Q526 -779 515 -771L640 -600L765 -656Q763 -661 761.5 -667Q760 -673 760 -680Q760 -705 777.5 -722.5Q795 -740 820 -740Q845 -740 862.5 -722.5Q880 -705 880 -680Q880 -655 862.5 -637.5Q845 -620 820 -620Q818 -620 815.5 -620.5Q813 -621 811 -621L771 -367Q766 -338 743.5 -319Q721 -300 692 -300ZM268 -380H692L718 -547L672 -527Q646 -516 619 -523Q592 -530 575 -553L480 -684L385 -553Q368 -530 341 -523Q314 -516 288 -527L242 -547Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

:where(.wp-site-blocks) > * {
    margin-block-start: 0rem !important;
    margin-block-end: 0;
}

/** COLLAPSIBLE POST CONTENT */
.ct-description {
  padding: 0.5rem;
  position: relative;
  font-size: 0.75rem;
  color: var(--soft-black);
  line-height: 1.4em;
  margin: 0 !important;
}

/* Clamp text to 2 lines */
.ct-desctext { 
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  position: relative;
  margin-bottom: 0 !important;
  line-height: 1.4em;
}

/* fade and position the Read more inline */
.read-inline {
  position: relative;
  top: 0.5rem;
  padding-right: 1rem;
  color: var(--lista-primary) !important;
  font-weight: 300;
  text-decoration: none !important;
  cursor: pointer;
  outline: none !important;
}

/* Expanded mode */
.ct-description.expanded .ct-desctext {
  -webkit-line-clamp: unset;
}

.ct-description.expanded .read-inline {
  position: static;
  display: inline;
}

/* SEARCH NEAR ME RELATED */

.snm-root {
  padding: 0.5rem;
}

.snm-search-input {
  width: 100%;
  box-sizing: border-box;
  height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 99px;
  font-size: 1rem;
  outline: none !important;
  margin-bottom: 1rem;
}

.snm-search-input:focus {
  border-color: var(--primary);
}

.snm-heading-group {
  margin-bottom: 1.5rem;
}

.snm-heading-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.snm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.snm-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  min-width: 0;
  gap: 0.5rem;
  text-decoration: none !important;
  color: inherit;
  background: #ffffff;
  border: 0.5px solid #ececec;
  border-radius: 1rem;
  padding: 0.75rem 0.25rem 0.6rem;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.snm-cat-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.snm-cat-card:active,
.snm-cat-card.snm-loading {
  transform: scale(0.96);
  box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.1);
}

.snm-cat-card img {
  width: 100%;
  max-width: 4rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
}

.snm-cat-card span {
  font-size: 0.72rem;
  overflow-wrap: anywhere;
  font-weight: 500;
  line-height: 1.2;
  color: #222;
}

.snm-search-results[hidden] {
  display: none;
}

.snm-no-results {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem 0;
}

.tiny-text{
  color: var(--soft-black);
  font-size: 0.75rem;
}
/* Disable shadows behind images (was a WPCode CSS snippet). */
img,
img *,
img::before,
img::after,
figure,
figure *,
figure::before,
figure::after {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
