/* ── GRID WRAPPER ── */

button.ft-icon-btn {
    display: none;
}

a.ft-nav-link {
    display: none;
}

h3.sitter-name {
    text-transform: capitalize;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-family: Questrial, sans-serif;
}

.chip-city {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
}

.chip-date {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.chip-cats {
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #92400e;
}

.chip a {
  text-decoration: none;
  font-weight: 700;
  margin-left: 4px;
}
.e-container{
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
}
/* intro */
.ft-intro-section {
  text-align: center;
  padding: 50px 20px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.ft-gid-banner h2 {
    font-family: Londrina Solid;
    font-weight: 900;
    font-style: Black;
    font-size: 40px;
    line-height: 36px;
    letter-spacing: 0px;
}
.ft-gid-banner p {
    font-family: Questrial;
    font-weight: 400;
    font-size: 20px;
    line-height: 34px;
    letter-spacing: 0px;
    width: 62%;
    color: #6A7282;
}
main#pid-search-sitter {
    padding: 50px 15px;
    background: #F9F7F0;
}
#ft-grid-wrap {
  padding: 24px 0 48px;
  font-family: 'Questrial', sans-serif;
}
#ft-grid-wrap * {
  box-sizing: border-box;
}

/* ── TOP BAR ── */
.ft-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e8eaf0;
}
.ft-topbar-left  { display: flex; align-items: center; gap: 10px; }
.ft-topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.ft-icon-btn {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: none;
  background: #5b5fe5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
button.ft-icon-btn svg {
    width: 50px;
    height: 50px;
}
.ft-icon-btn:hover { background: #4a4fd4; }

.ft-tagline {
    color: #000;
    font-family: Questrial;
    font-weight: 400;
    font-size: 17px;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: right;
}

a.ft-nav-link {
    font-family: Questrial;
    font-weight: 400;
    font-size: 17px;
    line-height: 24px;
    letter-spacing: 0px;
    text-decoration: underline;
    text-decoration-style: solid;
    color: #6A7282;

}

.ft-nav-link:hover,
.ft-nav-active {
  color: #5b5fe5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ft-sort-wrap  { display: flex; align-items: center; gap: 5px; }
.ft-sort-label { font-size: 17px; color:#6A7282; white-space: nowrap; text-decoration: underline; }
.ft-sort-select {
    border: none;
    background: transparent;
    font-family: 'Questrial', sans-serif;
    font-size: 17px;
    color: #6A7282;
    cursor: pointer;
    outline: none;
    padding: 0;
    font-weight: 400;
}
/* Fix for Pagination Arrows */
.ft-page-btn svg {
    width: 18px !important; /* Explicit size */
    height: 18px !important;
    display: block;
    margin: auto;
}

/* Ensure the path is visible */
.ft-page-btn svg path {
    stroke: #374151 !important; /* Dark gray for visibility */
}

/* Change color when hovered */
.ft-page-btn:hover:not(:disabled) svg path {
    stroke: #5b5fe5 !important;
}

/* Ensure the button doesn't hide the overflow if the SVG is slightly larger */
.ft-page-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
/* ── GRID LAYOUT ── */
.ft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

a.ft-bottom-link {
    font-family: Questrial;
    font-weight: 400;
    font-size: 14px;
    line-height: 22.75px;
    letter-spacing: 0px;
    text-align: right;
    text-decoration: underline;
    color: #6A7282;
}

/* ── LOADING ── */
.ft-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 0;
  color: #9ca3af;
  font-size: 14px;
}
.ft-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e8eaf0;
  border-top-color: #5b5fe5;
  border-radius: 50%;
  animation: ft-spin .8s linear infinite;
}
@keyframes ft-spin { to { transform: rotate(360deg); } }

/* ── ERROR ── */
.ft-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.ft-error h4 {
  font-family: 'Grandstander', sans-serif;
  font-size: 16px;
  color: #374151;
  margin-bottom: 8px;
}
.ft-error p { font-size: 13px; color: #9ca3af; }

/* ── CARD ENTRANCE ANIMATION (scoped to our grid only) ── */
#ft-grid .sitter-card {
  animation: ft-card-in .4s ease both;
}
#ft-grid .sitter-card:nth-child(1)  { animation-delay: .00s }
#ft-grid .sitter-card:nth-child(2)  { animation-delay: .05s }
#ft-grid .sitter-card:nth-child(3)  { animation-delay: .10s }
#ft-grid .sitter-card:nth-child(4)  { animation-delay: .15s }
#ft-grid .sitter-card:nth-child(5)  { animation-delay: .20s }
#ft-grid .sitter-card:nth-child(6)  { animation-delay: .25s }
#ft-grid .sitter-card:nth-child(7)  { animation-delay: .30s }
#ft-grid .sitter-card:nth-child(8)  { animation-delay: .35s }
#ft-grid .sitter-card:nth-child(9)  { animation-delay: .40s }
#ft-grid .sitter-card:nth-child(10) { animation-delay: .45s }
#ft-grid .sitter-card:nth-child(11) { animation-delay: .50s }
#ft-grid .sitter-card:nth-child(12) { animation-delay: .55s }
@keyframes ft-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── YOUR EXACT CARD CSS (from your site's stylesheet) ── */
.sitter-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 14px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.sitter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 3px 17px rgba(0,0,0,0.12);
  transition: .5s;
}

.card-media {
  position: relative;
  height: 280px;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.price-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-family: 'Grandstander', sans-serif;
  color: #29377F;
}
.price-badge span {
  color: #99A1AF;
  font-weight: 400;
  font-size: 12px;
}

.intro-btn {
  position: absolute;
  bottom: 15px;
  left: 15px;
  border: none;
  background: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  text-transform: uppercase;
  color: #29377F;
  font-size: 12px;
  font-family: 'Grandstander', sans-serif;
  display: none;
}
button.intro-btn:hover { background: #db6a4c; }
button.intro-btn:hover svg path { stroke: #fff; fill: #fff; }

.card-body {
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 27px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sitter-name {
  font-size: 20px;
  color: #29377F;
  font-weight: 900;
  margin-bottom: 0;
  margin-top: 0;
}

.rating {
  font-size: 14px;
  font-weight: 700;
  color: #29377F;
  font-family: 'Grandstander', sans-serif;
}

.location {
  font-size: 12px;
  color: #3a6ae2;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: 'Grandstander', sans-serif;
  text-transform: uppercase;
}

.description {
  font-size: 14px;
  color: #6A7282;
  line-height: 1.625em;
  margin-bottom: 0;
  font-family: 'Questrial', sans-serif;
}
.description a { color: #3a6ae2; text-decoration: none; }

.features {
  list-style: none;
  font-size: 10px;
  color: #7D7D7E;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
  padding-left: 0;
}
.features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #7D7D7E;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.12px;
}

.card-footer {
  display: flex;
  text-align: center;
  margin-top: 20px;
}

.select-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #4c73d9;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: .3s;
  display: block;
  text-decoration: none;
  text-align: center;
}
a.select-btn {
  font-size: 16px;
  font-weight: 700;
  font-family: 'Grandstander', sans-serif;
  text-transform: uppercase;
}
.select-btn:hover { background: #db6a4c; color: #fff; }

/* ── VIDEO POPUP ── */
.ms-video-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
}
.ms-video-overlay {
  position: absolute;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
}
.ms-video-box {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 900px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.ms-video-box video { width: 100%; height: 784px; display: block; }
.ms-video-close {
  position: absolute;
  top: -9px; right: 14px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 9999;
}

/* ── PAGINATION ── */
.ft-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.ft-page-btn {
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.ft-page-btn:hover {
	background: transparent;
}
.ft-page-btn:hover:not(:disabled) { border-color: #5b5fe5; color: #5b5fe5; }
.ft-page-btn:disabled { opacity: .35; cursor: not-allowed; }

.ft-page-nums {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}
.ft-pg {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-family: 'Grandstander', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.ft-pg:hover  { border-color: #5b5fe5; color: #5b5fe5; }
.ft-pg.active { background: #5b5fe5; border-color: #5b5fe5; color: #fff; }
.ft-pg-dots   { color: #9ca3af; font-size: 14px; padding: 0 3px; }

/* ── BOTTOM LINKS ── */
.ft-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 14px;
}
.ft-bottom-link {
  font-size: 12px;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ft-bottom-link:hover { color: #5b5fe5; }



/* Badge */
.ft-badge {
  display: inline-block;
  background: #eef1ff;
  color: #6b6eea;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.ft-heading {
	color: #29377F;
	margin: 0 auto 18px;
	font-weight: 700;
	font-size: 23px;
	line-height: 15px;
	letter-spacing: 1.12px;
	text-align: center;
	text-transform: uppercase;
	font-family: inter !important;
}

/* Features */
.ft-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 25px;
}

.ft-features span {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: Inter !important;
	font-weight: 900;
	font-size: 10px;
	line-height: 15px;
	letter-spacing: 1.12px;
	text-transform: uppercase;
	color: #1E1B4B66;
}
.ft-features svg path {
	stroke: #1E1B4B66;
}
/* Buttons */
.ft-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ft-buttons .ft-btn {
    padding: 16px 80px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
    font-family: Grandstander;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.8px;
    text-align: center;
    text-transform: uppercase;
    width: auto;
}
.ft-btn:hover {
	color: #fff;
}

/* Outline button */
.ft-btn-outline {
  background: #4c73d9;
  color: #fff;
}

.ft-btn-outline:hover {
  background: #3a5fc0;
}

/* Primary button */
.ft-btn-primary {
  background: #4c73d9;
  color: #fff;
}

.ft-btn-primary:hover {
  background: #db6a4c;
}
@media (max-width: 900px) {
  .ft-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-tagline { display: none; }
}
@media (max-width: 580px) {
  .ft-grid { grid-template-columns: 1fr; }
  .ft-topbar { flex-direction: column; align-items: flex-start; }
}
