/* ── SOCAOne Location Finder ────────────────────────────────────────────── */

.socaone-locations-root {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Layout ── */
.soca-loc-wrap {
  display: flex;
  height: 600px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.soca-loc-sidebar {
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  overflow: hidden;
}

.soca-loc-map {
  flex: 1;
  min-width: 0;
}

/* ── Header bar ── */
.soca-loc-header {
  background: #CC0000;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 18px;
  letter-spacing: .1px;
  flex-shrink: 0;
}
.soca-loc-header strong {
  font-weight: 700;
}

/* ── Filters ── */
.soca-loc-filters {
  padding: 14px 14px 10px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.soca-loc-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.soca-loc-search-input {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 9px 44px 9px 14px;
  font-size: 13px;
  color: #111;
  outline: none;
  font-family: inherit;
  transition: border-color .15s;
  box-sizing: border-box;
}
.soca-loc-search-input:focus { border-color: #CC0000; }
.soca-loc-search-input::placeholder { color: #aaa; }

.soca-loc-search-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 42px;
  background: #CC0000;
  border: none;
  border-radius: 0 8px 8px 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.soca-loc-search-btn:hover { background: #a30000; }

.soca-loc-country-wrap {
  position: relative;
}
.soca-loc-country-select {
  width: 100%;
  appearance: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 9px 36px 9px 14px;
  font-size: 13px;
  color: #333;
  background: #fff;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s;
  box-sizing: border-box;
}
.soca-loc-country-select:focus { border-color: #CC0000; }

.soca-loc-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #888;
}

/* ── Location list ── */
.soca-loc-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.soca-loc-list::-webkit-scrollbar { width: 4px; }
.soca-loc-list::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

.soca-loc-empty {
  padding: 24px 18px;
  color: #aaa;
  font-size: 13px;
  text-align: center;
}

.soca-loc-error {
  padding: 20px;
  color: #888;
  font-size: 13px;
}

.soca-loc-divider {
  margin: 0;
  border: none;
  border-top: 1px solid #f0f0f0;
}

/* ── Location card ── */
.soca-loc-card {
  padding: 16px 18px 14px;
}
.soca-loc-card--clickable {
  cursor: pointer;
  transition: background .12s;
}
.soca-loc-card--clickable:hover { background: #fff8f8; }

.soca-loc-card__name {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.soca-loc-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: #555;
  margin-bottom: 6px;
  line-height: 1.4;
}
.soca-loc-row svg {
  flex-shrink: 0;
  margin-top: 1px;
  stroke: #CC0000;
}

.soca-loc-book-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 16px;
  border: 1.5px solid #CC0000;
  border-radius: 6px;
  color: #CC0000;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.soca-loc-book-btn:hover {
  background: #CC0000;
  color: #fff;
}

/* ── Google Maps Info Window ── */
.soca-iw {
  padding: 4px 4px 8px;
  min-width: 220px;
  max-width: 280px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

.soca-iw__name {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #CC0000;
  line-height: 1.3;
  padding-right: 20px;
}

.soca-iw__addr {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: #333;
  line-height: 1.5;
}

.soca-iw__detail {
  display: block;
  font-size: 12.5px;
  margin: 0 0 6px;
  color: #444;
  text-decoration: none;
}
.soca-iw__detail--red { color: #CC0000; }
.soca-iw__detail--red:hover { text-decoration: underline; }

.soca-iw__book {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 20px;
  background: #CC0000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
}
.soca-iw__book:hover { background: #a30000; color: #fff; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .soca-loc-wrap {
    flex-direction: column;
    height: auto;
  }
  .soca-loc-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    max-height: 380px;
  }
  .soca-loc-map {
    height: 360px;
  }
}
