
#map {
    width: 100%;
    height: 100vh;
}

.popup-card {
    width: 320px;
    padding: 16px;
    color: #333;
}

.popup-card h2 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #1f4e79;
}

.popup-card .popup-subtitle {
    margin: 0 0 12px;
    color: #5f6d7a;
    font-size: 13px;
}

.popup-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    align-items: flex-start;
}

.popup-label {
    font-size: 12px;
    flex: 0 0 90px;
}

.popup-value {
    font-size: 13px;
    flex: 1;
}

.view-details-button {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    background: #a7803d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    transition: background 0.2s ease;
}

.view-details-button:hover {
    background: #a7803d;
    color: #fff;
}
.store-hover-popup {
    position: absolute;
    top: 80px;
    right: 20px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    z-index: 9999;
    display: none;
    border: 1px solid #eee;
}

.store-hover-popup.show {
    display: block;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 15px;
    background: #a7803d;
    color: white;
    border-radius: 12px 12px 0 0;
}

.popup-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#popupContent {
    padding: 10px;
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.price-table th {
    background: #f7f7f7;
    font-size: 12px;
    padding: 8px;
}

.price-table td {
    border-top: 1px solid #eee;
}

/* RTL Support */

html[dir="rtl"] .popup-card {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .popup-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .popup-label {
    text-align: left;
}

html[dir="rtl"] .popup-value {
    text-align: right;
}

html[dir="rtl"] .view-details-button {
    display: inline-block;
    margin-right: auto;
}


.nearest-store-wrap {
  margin-top: 12px;
    background: #f7f7f7;
    padding: 12px;
    border-radius: 11px;
    margin-bottom: 12px;
    width: fit-content;
}

.nearest-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.nearest-title i {
    color: #16c784;
}

.nearest-store-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-chip {
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 180px;
}

.store-chip strong {
    font-size: 14px;
    color: #222;
    font-weight: 600;
}

.store-chip span {
    font-size: 12px;
    color: #777;
}


.map-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
    margin-bottom: 10px;
}

.map-back-btn i {
    font-size: 14px;
}

.map-back-btn:hover {
    background: #1f4e79;
    color: #fff;
    border-color: #1f4e79;
    transform: translateY(-1px);
}

.map-back-btn:active {
    transform: translateY(0);
}

.map-back-btn:focus {
    outline: none;
}

/* RTL Support */
html[dir="rtl"] .map-back-btn {
    flex-direction: row-reverse;
}


.card {
  width: 360px;
  background: #fff;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ── Header ── */
.card-header {
  background: #7c5c2e;
  padding: 1.25rem 1.25rem 1rem;
}

.card-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-eyebrow {
  font-size: 11px;
  color: #d4b483;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.header-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff8ee;
  margin-bottom: 2px;
}

.header-subtitle {
  font-size: 13px;
  color: #c9a96e;
  margin: 0;
}

.header-right {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 8px;
  margin-right: 20px;
}

.close-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

/* .close-btn:hover {
  background: rgba(255, 255, 255, 0.28);
} */
/* .close-btn:active {
  background: rgba(255, 255, 255, 0.38);
} */
.close-btn i {
  font-size: 16px;
  color: #f5dba7;
}

.header-icon-box {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon-box {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon-box i {
  font-size: 24px;
  color: #f5dba7;
}

.header-chips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #f5dba7;
}

.chip i {
  font-size: 13px;
}

.card-address {
  padding: 12px 1.25rem;
  border-bottom: 0.5px solid #ebebeb;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-address i {
  font-size: 15px;
  color: #999;
  margin-top: 1px;
  flex-shrink: 0;
}

.card-address p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ── Price table ── */
.card-prices {
  padding: 0.3rem 1.25rem;
}

.prices-label {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  border-bottom: 0.5px solid #f0f0f0;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-row-left i {
  font-size: 15px;
  color: #a07840;
}

.price-row-left span {
  font-size: 13px;
  color: #333;
}

.price-value {
  font-size: 13px;
  font-weight: 600;
  color: #222;
}

.price-unit {
  font-size: 11px;
  color: #999;
  font-weight: 400;
  margin-left: 2px;
}

/* ── CTA ── */
.card-footer {
  padding: 0 1.25rem 1.25rem;
}

.cta-btn {
  width: 100%;
  padding: 11px;
  background: #7c5c2e;
  color: #fff8ee;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.cta-btn:hover {
  background: #6a4d25;
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn i {
  font-size: 15px;
}