/* ===========================================================================
   PawCompass colorful / playful enhancements.
   Loaded AFTER the compiled Bootstrap bundle (styles.css) so it can override it.
   =========================================================================== */

:root {
  --paw-shadow: 0 10px 30px rgba(31, 45, 61, 0.08);
  --paw-shadow-hover: 0 16px 40px rgba(31, 45, 61, 0.16);
  --paw-radius: 1rem;
}

/* Buttons: rounder, with a subtle brightness change on hover (no vertical
   movement: the "lift" was removed on request). */
.btn {
  border-radius: 0.7rem;
  transition: box-shadow 0.12s ease, filter 0.12s ease;
}
/* The compiled .btn-purple sets a white hover color but leaves the resting
   text at Bootstrap's dark default, so the label looks black until hovered. */
.btn.btn-purple {
  --bs-btn-color: var(--bs-white, #fff);
  color: var(--bs-white, #fff);
}
.btn-primary,
.btn-purple,
.btn-pink,
.btn-secondary {
  box-shadow: 0 6px 16px rgba(31, 45, 61, 0.12);
}
.btn:hover {
  filter: brightness(1.03);
}

.card {
  border-radius: var(--paw-radius);
}

/* ===== Detail page: contact card (was nearly invisible) ===== */
.place-contact-card {
  border: 0;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #fff6ec 0%, #fdeef6 55%, #eef4ff 100%);
  box-shadow: var(--paw-shadow);
}
.place-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex: 0 0 auto;
}
.place-contact-card h6 {
  font-weight: 700;
}
.place-contact-link {
  color: #334155;
  text-decoration: none;
}
.place-contact-link:hover {
  color: var(--bs-purple);
  text-decoration: underline;
}

/* ===== Search results list ===== */
.place-list__item {
  background: #fff;
  border: 1px solid rgba(31, 45, 61, 0.06);
  border-radius: 1.1rem;
  padding: 0.75rem;
  box-shadow: var(--paw-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.place-list__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--paw-shadow-hover);
}
.place-list__item__image {
  border-radius: 0.9rem;
  background-size: cover;
  background-position: center;
}
.place-list__item__title {
  color: var(--bs-dark);
  text-decoration: none;
}
.place-list__item__title:hover {
  color: var(--bs-purple);
}

/* Category chips → playful pills */
.category__badge {
  border-radius: 999px !important;
  padding: 0.4rem 0.7rem;
  font-weight: 600;
}

/* ===== Filters sidebar → friendly card ===== */
.filters-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
  border: 1px solid rgba(31, 45, 61, 0.06);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--paw-shadow);
}
@media (min-width: 992px) {
  .filters-card {
    position: sticky;
    top: 1rem;
  }
}
.filters-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--bs-purple);
}
.filters-card .form-check-input:checked {
  background-color: var(--bs-purple);
  border-color: var(--bs-purple);
}
.filters-card .btn-check:checked + .btn {
  background-color: var(--bs-purple);
  border-color: var(--bs-purple);
  color: #fff;
}
.filters-card label {
  cursor: pointer;
}

/* ===== Cards with a bit of motion ===== */
.discover-place__card {
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: var(--paw-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.discover-place__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--paw-shadow-hover);
}
.discover-place__card__category {
  border-radius: 0 0 0 1rem !important;
}

.featured-categories__card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.featured-categories__card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--paw-shadow-hover);
}

.reviews .card {
  box-shadow: var(--paw-shadow);
}

/* ===== Header: keep the inline search compact so the top bar stays one row ===== */
@media (min-width: 992px) {
  .header__container .header__search .search-group {
    max-width: 420px;
  }
  .header__container .header__search .search-group .query-text,
  .header__container .header__search .search-group .location-text {
    width: auto;
    flex: 1 1 auto;
    min-width: 120px;
  }
}

/* ===== Get Directions button (readable, on-brand) ===== */
.btn-directions {
  background: #fff;
  border: 1px solid var(--bs-purple, #6f42c1);
  color: var(--bs-purple, #6f42c1);
  font-weight: 600;
}
.btn-directions:hover,
.btn-directions:focus {
  background: var(--bs-purple, #6f42c1);
  border-color: var(--bs-purple, #6f42c1);
  color: #fff;
}

/* ===== Results map (Yelp-style) ===== */
.results-map {
  height: calc(100vh - 130px);
  min-height: 480px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--paw-shadow);
  position: sticky;
  top: 1rem;
}
.paw-pin__dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bs-purple, #6f42c1);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.paw-pin__link {
  font-weight: 600;
  color: var(--bs-purple, #6f42c1);
  text-decoration: none;
}
.leaflet-container {
  font: inherit;
}

/* ===== Hours card ===== */
.hours-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  box-shadow: var(--paw-shadow);
  border-radius: 1.25rem;
}
.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.97rem;
}
.hours-row:not(:last-child) {
  border-bottom: 1px dashed rgba(31, 45, 61, 0.09);
}
.hours-row--today {
  background: linear-gradient(90deg, rgba(111, 66, 193, 0.12), rgba(214, 51, 132, 0.06));
  border-bottom: 0 !important;
  font-weight: 700;
}
.hours-day {
  color: #1f2d3d;
}
.hours-time {
  color: #334155;
}

/* ===== 404 / not-found page ===== */
.notfound {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: linear-gradient(135deg, #fff6ec 0%, #fdeef6 55%, #eef4ff 100%);
}
.notfound__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.8rem;
  color: #d63384;
  margin-bottom: 0.5rem;
}
.notfound__title {
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  color: #1f2d3d;
  margin-bottom: 1rem;
}
.notfound__lead {
  font-size: 1.1rem;
  color: #334155;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}
.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.notfound__hint {
  color: #64748b;
  margin-bottom: 0;
}
.notfound__hint a {
  color: var(--bs-purple, #6f42c1);
  font-weight: 600;
}

.btn-notfound-ghost {
  background: #fff;
  border: 1px solid var(--bs-purple, #6f42c1);
  color: var(--bs-purple, #6f42c1);
  font-weight: 600;
}
.btn-notfound-ghost:hover,
.btn-notfound-ghost:focus {
  background: var(--bs-purple, #6f42c1);
  border-color: var(--bs-purple, #6f42c1);
  color: #fff;
}

.notfound-pet {
  margin: 0;
}
.notfound-pet__stage {
  position: relative;
  width: clamp(220px, 62vw, 330px);
  height: clamp(220px, 62vw, 330px);
  margin: 0 auto;
}
.notfound-pet__frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 6px solid #fff;
  box-shadow: var(--paw-shadow-hover);
}
.notfound-pet__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.notfound-pet__badge {
  position: absolute;
  right: 4%;
  bottom: 6%;
  background: var(--bs-purple, #6f42c1);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(31, 45, 61, 0.22);
}
.notfound-pet__caption {
  margin-top: 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
}
.notfound-pet__caption strong {
  color: #1f2d3d;
}

/* ===== Detail page: empty amenities callout ===== */
.amenities-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px dashed rgba(111, 66, 193, 0.25);
  border-radius: var(--paw-radius);
  background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}
.amenities-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  font-size: 1.3rem;
  color: var(--bs-purple, #6f42c1);
  background: rgba(111, 66, 193, 0.1);
}
.amenities-empty__text {
  font-weight: 600;
  color: #1f2d3d;
  margin-bottom: 0.25rem;
}
.amenities-empty__hint {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ===== Detail page: claim / suggest callout ===== */
.claim-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--paw-radius);
  background: linear-gradient(135deg, #fff6ec 0%, #fdeef6 55%, #eef4ff 100%);
  box-shadow: var(--paw-shadow);
}
.claim-callout__text {
  min-width: 260px;
  flex: 1 1 320px;
}
.claim-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ===== Suggest / claim form ===== */
.suggest-head__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.75rem;
  color: #d63384;
  margin-bottom: 0.35rem;
}
.suggest-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--bs-purple, #6f42c1);
  background: rgba(111, 66, 193, 0.1);
}

/* Grid helper for definition lists laid out with Bootstrap columns. */
.d-contents {
  display: contents;
}

/* ===== Suggest form: hours editor (fixed day column keeps inputs aligned) ===== */
.hours-editor-row {
  display: grid;
  grid-template-columns: 92px 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.hours-editor-day {
  font-size: 0.875rem;
  color: #334155;
}

/* ===== Pagination (purple to match the theme) ===== */
.pagination-paw {
  gap: 0.35rem;
}
.pagination-paw .page-link {
  border-radius: 0.6rem;
  border-color: rgba(111, 66, 193, 0.2);
  color: var(--bs-purple, #6f42c1);
  min-width: 42px;
  text-align: center;
}
.pagination-paw .page-link:hover {
  background: rgba(111, 66, 193, 0.08);
  color: var(--bs-purple, #6f42c1);
}
.pagination-paw .page-item.active .page-link {
  background: var(--bs-purple, #6f42c1);
  border-color: var(--bs-purple, #6f42c1);
  color: #fff;
}
.pagination-paw .page-item.disabled .page-link {
  color: #adb5bd;
  border-color: rgba(31, 45, 61, 0.1);
}
