:root {
  --fp-accent: #173b75;
  --fp-muted: #6a7688;
  --fp-bg: #f8fafc;
}

/* basic floorplans container */
.fp-floorplans {
  max-width: 1200px;
  margin: 36px auto;
  padding: 0 18px;
}
.fp-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.fp-tabs {
  display:flex;
  gap:12px;
  justify-content:center;
  margin: 8px auto 6px;
}
.fp-tab {
  min-width: 90px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(11,116,209,0.12);
  background: transparent;
  color: #173B75;
  font-weight:700;
  cursor:pointer;
}
.fp-tab-soldout{
  min-width: 90px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(11,116,209,0.12);
  background: transparent;
  color: red;
  font-weight:700;
  cursor:no-drop;
  opacity: 0.5;
}
.fp-tab[aria-selected="true"] {
  background: #173B75;
  color: #fff;
  box-shadow: 0 8px 22px rgba(23,59,117,0.15);
}
.fp-available {
  text-align:center;
  color:#6b7f8f;
  font-size:13px;
  margin-top:6px;
}

/* scroll container with outside arrows */
.fp-scroll-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}
.fp-track-wrap {
  flex: 1 1 auto;
  overflow: hidden;
}

/* outside arrows */
.fp-scroll-btn {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--fp-accent);
  color: #fff;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(23, 59, 117, 0.22);
  transition: transform 0.18s, opacity 0.18s;
}
.fp-scroll-btn svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.fp-scroll-btn:hover {
  transform: scale(1.08);
}

/* track */
.fp-track {
  background: linear-gradient(180deg, #f6fbff 0%, #f9fcff 100%);
  padding: 18px;
  border-radius: 12px;
  display:flex;
  gap: 18px;
  overflow-x: auto;
  justify-content:flex-start;
}
.fp-track::-webkit-scrollbar {
  display: none;
} /* hide scrollbar */
.fp-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* cards */
.fp-card {
  min-width: 300px;
  max-width: 300px;
  background:#ffffff;
  border-radius:12px;
  border:1px solid rgba(11,116,209,0.06);
  box-shadow: 0 6px 14px rgba(11,30,60,0.04);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.fp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(11, 30, 60, 0.12);
}
.fp-meta { padding:12px 14px 8px; text-align:left; }
.fp-badge {
  background: #173B75;        /* dark blue pill */
  color: #fff;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:15px;
  display:inline-block;
}
.fp-badge small { color: rgba(255,255,255,0.85); font-weight:600; margin-left:6px; font-size:12px; }
.fp-plan-title { color:#6b7f8f; font-size:13px; margin-top:8px; font-weight:600; }
/* image */
.fp-image-wrap { padding:10px 12px 0 12px; background:transparent; }
.fp-image-wrap img {
  width:100%;
  /*height:160px;*/
  object-fit:cover;
  border-radius:8px;
  display:block;
  box-shadow: inset 0 -1px 0 rgba(11,116,209,0.02);
}

/* body & bottom */
.fp-body { padding:12px 14px 18px; display:flex; flex-direction:column; gap:8px; }
.fp-body .fp-callback {
  background: transparent;
  border: 0;
  color: #173B75;
  text-decoration: underline;
  font-weight:700;
  padding:0;
  text-align:left;
  cursor:pointer;
}
.fp-price {
  color: var(--fp-accent);
  font-weight: 800;
  font-size: 18px;
}
.fp-details {
  background:#fbfdff;
  border-radius:8px;
  padding:8px;
  display:inline-block;
  color:#6b7f8f;
  font-size:13px;
}
.fp-callback {
  background: transparent;
  border: 0;
  color: var(--fp-accent);
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  text-decoration: underline;
}
.fp-track { align-items:flex-start; }
.fp-track::-webkit-scrollbar { display:none; }
.fp-track { -ms-overflow-style:none; scrollbar-width:none; }

/* mobile bottom arrow bar (hidden on desktop) */
.fp-mobile-arrowbar {
  display: none;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}
.fp-mobile-arrowbar .fp-scroll-btn {
  width: 48px;
  height: 48px;
}
/* hidden state (used by JS) */
.fp-scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: scale(0.98);
}
@media (max-width:720px) {
  .fp-floorplans { padding: 8px 12px; }
  .fp-track { gap:12px; padding:12px; }
  .fp-card { min-width:240px; max-width:240px; }
  .fp-image-wrap img { height:140px; }
  .fp-tab, .fp-tab-soldout { min-width:70px; padding:8px 12px; font-size:14px; }
}

/* responsive rules */
/* On mobile: hide outside arrows, show bottom mobile bar and tuck arrows centrally below the track */
@media (max-width: 760px) {
  .fp-scroll-outside {
    display: none !important;
  } /* hide outside arrows */
  .fp-mobile-arrowbar {
    display: flex;
  } /* show bottom bar */
  .fp-track {
    gap: 10px;
    padding: 10px;
  }
  .fp-card {
    min-width: 220px;
    max-width: 220px;
    border-radius: 10px;
  }
  .fp-image-wrap img {
    height: 140px;
  }
  .fp-grid,
  .fp-grid-two {
    grid-template-columns: 1fr;
  }
  .fp-form {
    padding: 24px;
  }
  .fp-actions {
    flex-direction: column;
  }
  .fp-btn {
    width: 100%;
  }
}

/* very small phones */
@media (max-width: 380px) {
  .fp-card {
    min-width: 200px;
    max-width: 200px;
  }
  .fp-image-wrap img {
    height: 120px;
  }
  .fp-mobile-arrowbar .fp-scroll-btn {
    width: 44px;
    height: 44px;
  }
}

/* ===== BOOK TOUR FORM ===== */
.fp-booktour {
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 16px;
}

.fp-form {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(23, 59, 117, 0.08);
}

.fp-form-title {
  text-align: center;
  font-size: 40px;
  /* color: var(--fp-accent); */
  font-weight: 700;
  margin-bottom: 4px;
}
.fp-form-subtitle {
  font-size: 20px;
  text-align: center;
  color: var(--fp-muted);
  margin-bottom: 24px;
}

.fp-grid,
.fp-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.fp-grid-two {
  margin-top: 8px;
}

.fp-form input,
.fp-form select {
  padding: 14px 16px;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  font-size: 18px;
  width: 100%;
  transition: all 0.2s ease;
}
.fp-form select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fp-form input:focus,
.fp-form select:focus {
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 3px rgba(23, 59, 117, 0.1);
  outline: none;
}

/* Buttons */
.fp-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

.fp-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.fp-btn-primary {
  background: var(--fp-accent);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(23, 59, 117, 0.18);
}

.fp-btn-secondary {
  border: 2px solid var(--fp-accent);
  background: #fff;
  color: var(--fp-accent);
}

/* Responsive */
/* Medium breakpoint — tablets and small laptops */
@media (max-width: 880px) {
  .fp-booktour {
    padding: 28px 14px;
  }
  .fp-form {
    padding: 28px;
    max-width: 760px;
  }

  /* Stacks inputs into single column for comfort */
  .fp-grid,
  .fp-grid-two {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fp-form-title {
    font-size: 24px;
  }
  .fp-form-subtitle {
    font-size: 14px;
  }

  .fp-form input,
  .fp-form select {
    padding: 12px 14px;
    font-size: 14px;
  }
  .fp-actions {
    gap: 12px;
    justify-content: center;
  }
}

/* Small devices — phones in portrait */
@media (max-width: 520px) {
  .fp-booktour {
    margin: 20px auto;
    padding: 0 10px;
  }
  .fp-form {
    padding: 20px;
    border-radius: 10px;
  }

  .fp-form-title {
    font-size: 20px;
    line-height: 1.05;
    text-align: center;
  }
  .fp-form-subtitle {
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
  }

  /* ensure inputs are tall enough & full width */
  .fp-form input,
  .fp-form select {
    padding: 14px 12px;
    font-size: 15px;
    border-radius: 10px;
  }

  /* Actions: stack vertically for easier tapping on small phones */
  .fp-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-top: 18px;
  }

  /* primary button full width */
  .fp-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
  }

  .fp-btn-secondary {
    width: 100%;
  }
}

/* Very narrow / older phones — ensure readability and tap targets */
@media (max-width: 380px) {
  .fp-form {
    padding: 16px;
  }
  .fp-form-title {
    font-size: 18px;
  }
  .fp-form input,
  .fp-form select {
    padding: 12px;
    font-size: 14px;
  }
  .fp-float-right {
    display: block;
  } /* defensive: if any element floated right */
}

/* Accessibility: larger focus outlines on touch */
@media (hover: none) {
  .fp-form input:focus,
  .fp-form select:focus,
  .fp-btn:focus {
    outline: 3px solid rgba(23, 59, 117, 0.12);
  }
}

/* For FAQ section */

.fp-faq {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 16px;
}
.fp-faq-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: left;
}

/* list */
.fp-faq-list {
  display: grid;
  gap: 12px;
}

/* each item */
.fp-faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(11, 116, 209, 0.06);
  box-shadow: 0 8px 20px rgba(11, 30, 60, 0.03);
  overflow: hidden;
}

/* question row: button spans full width */
.fp-faq-q {
  display: block;
}
.fp-faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 16px 18px;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  color: #0b2b45;
}

/* question number & text */
.fp-faq-qnum {
  color: var(--fp-accent, #173b75);
  font-weight: 800;
  margin-right: 8px;
  width: 30px;
  flex: 0 0 auto;
}
.fp-faq-qtext {
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 18px;
}

/* arrow icon on right */
.fp-faq-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: x-large;
  border-radius: 8px;
  background: rgba(11, 116, 209, 0.06);
  color: var(--fp-accent, #173b75);
  transform: rotate(0deg);
  transition: transform 240ms cubic-bezier(0.2, 0.9, 0.2, 1);
  flex: 0 0 auto;
}

/* panel (answer) collapsed by default */
.fp-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
  padding: 0 18px;
  background: #fff;
  box-sizing: border-box;
}

/* when expanded — JS sets aria-expanded and toggles class; we also add an expand class so CSS can react */
.fp-faq-item.expanded .fp-faq-panel {
  padding: 12px 18px 18px;
}

/* rotate icon when expanded */
.fp-faq-item.expanded .fp-faq-icon {
  transform: rotate(180deg);
}

/* answer text style */
.fp-faq-panel p,
.fp-faq-panel ul {
  margin: 0 0 8px 0;
  color: #485b6b;
  line-height: 1.6;
  font-size: 16px;
}
.fp-faq-panel ul {
  padding-left: 18px;
}

/* ===== Responsive tweaks for .fp-faq (override-only; do NOT change your desktop values) ===== */

/* Medium screens: tighten spacing and slightly smaller type */
@media (max-width: 1024px) {
  .fp-faq {
    max-width: 980px;
    padding: 0 14px;
  }
  .fp-faq-heading {
    font-size: 28px;
  }
  .fp-faq-qtext {
    font-size: 17px;
  }
  .fp-faq-panel p,
  .fp-faq-panel ul {
    font-size: 15px;
  }
  .fp-faq-toggle {
    padding: 14px 16px;
  }
  .fp-faq-panel {
    padding: 0 16px;
  }
}

/* Small tablets / large phones: single-column comfortable spacing */
@media (max-width: 760px) {
  .fp-faq {
    max-width: 92%;
    margin: 28px auto;
    padding: 0 12px;
  }
  .fp-faq-heading {
    font-size: 24px;
    text-align: left;
  }
  .fp-faq-list {
    gap: 10px;
  }
  .fp-faq-toggle {
    padding: 12px 14px;
    font-size: 15px;
  }
  .fp-faq-qtext {
    font-size: 16px;
    line-height: 1.25;
  }
  .fp-faq-qnum {
    width: 28px;
    margin-right: 6px;
    font-size: 15px;
  }
  .fp-faq-icon {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .fp-faq-panel p,
  .fp-faq-panel ul {
    font-size: 15px;
    line-height: 1.5;
  }
  .fp-faq-panel {
    padding: 0 14px;
  }
  .fp-faq-item.expanded .fp-faq-panel {
    padding: 10px 14px 14px;
  }
}

/* Narrow phones: compact, larger tap targets, full-width content */
@media (max-width: 420px) {
  .fp-faq {
    padding: 0 10px;
    margin: 20px auto;
  }
  .fp-faq-heading {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .fp-faq-toggle {
    padding: 12px 12px;
    gap: 10px;
  }
  .fp-faq-qnum {
    display: inline-block;
    width: 26px;
    font-size: 14px;
  }
  .fp-faq-qtext {
    font-size: 15px;
  }
  .fp-faq-icon {
    width: 36px; /* slightly larger target for thumb */
    height: 36px;
    font-size: 20px;
  }
  .fp-faq-panel {
    padding: 0 12px;
  }
  .fp-faq-item.expanded .fp-faq-panel {
    padding: 10px 12px 12px;
  }
  .fp-faq-panel p,
  .fp-faq-panel ul {
    font-size: 15px;
  }

  /* Ensure very long answers don't overflow on tiny screens */
  .fp-faq-panel {
    word-break: break-word;
  }
}

/* Accessibility: increase hit area for toggle buttons on touch devices */
@media (hover: none) {
  .fp-faq-toggle {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .fp-faq-icon {
    touch-action: manipulation;
  }
}

/* Optional: smoother expand/collapse on small screens (keeps your transition) */
@media (max-width: 760px) {
  .fp-faq-panel {
    transition: max-height 360ms cubic-bezier(0.2, 0.9, 0.2, 1);
  }
}
