.lgsd-app {
  --ink: #102033;
  --muted: #647184;
  --line: #dce2e8;
  --paper: #f7f4ed;
  --white: #fff;
  --navy: #10253d;
  --navy-2: #173b59;
  --orange: #ef8f23;
  --orange-dark: #bf6311;
  --green: #24755f;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #e4dfd3;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(16, 37, 61, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  margin: 28px auto;
  max-width: 1180px;
  overflow: hidden;
}

.lgsd-app *, .lgsd-app *::before, .lgsd-app *::after { box-sizing: border-box; }
.lgsd-app button, .lgsd-app input, .lgsd-app select, .lgsd-app textarea { font: inherit; }
.lgsd-app button, .lgsd-app a { -webkit-tap-highlight-color: transparent; }

.lgsd-hero {
  align-items: end;
  background: radial-gradient(circle at 88% 15%, rgba(239, 143, 35, .23), transparent 27%), linear-gradient(125deg, #0d1f32, #173b59);
  color: var(--white);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) 280px;
  padding: 58px clamp(24px, 5vw, 70px) 50px;
}

.lgsd-eyebrow { color: #efaa56; display: block; font-size: 12px; font-weight: 800; letter-spacing: .13em; margin-bottom: 12px; text-transform: uppercase; }
.lgsd-hero h2, .lgsd-form-intro h3, .lgsd-membership-head h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.035em; line-height: 1.02; margin: 0; }
.lgsd-hero p { color: #d9e2ea; font-size: 17px; margin: 18px 0 0; max-width: 680px; }
.lgsd-safety { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 18px; }
.lgsd-safety strong, .lgsd-safety span { display: block; }
.lgsd-safety strong { color: #ffd19c; font-size: 13px; margin-bottom: 4px; text-transform: uppercase; }
.lgsd-safety span { color: #e8eef4; font-size: 13px; }

.lgsd-tabs { background: var(--white); border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; padding: 0 clamp(18px, 5vw, 70px); }
.lgsd-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 800; margin-bottom: -1px; padding: 20px 16px 17px; white-space: nowrap; }
.lgsd-tabs button:hover, .lgsd-tabs button:focus-visible { color: var(--navy); }
.lgsd-tabs button.is-active { border-color: var(--orange); color: var(--navy); }

.lgsd-panel { display: none; padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 70px) 70px; }
.lgsd-panel.is-active { display: block; }
.lgsd-searchbar { align-items: end; background: var(--white); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 12px 35px rgba(16, 32, 51, .06); display: grid; gap: 12px; grid-template-columns: 1.6fr 1fr .65fr; padding: 16px; }
.lgsd-searchbar label, .lgsd-form label { display: block; }
.lgsd-searchbar label > span, .lgsd-form label > span, .lgsd-plans legend { color: #425066; display: block; font-size: 12px; font-weight: 800; letter-spacing: .035em; margin: 0 0 7px; text-transform: uppercase; }
.lgsd-app input, .lgsd-app select, .lgsd-app textarea { background: var(--white); border: 1px solid #c9d1db; border-radius: 10px; color: var(--ink); outline: none; padding: 12px 13px; width: 100%; }
.lgsd-app input:focus, .lgsd-app select:focus, .lgsd-app textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 143, 35, .15); }
.lgsd-results-head { align-items: center; display: flex; justify-content: space-between; margin: 24px 2px 15px; }
.lgsd-results-head p { color: var(--muted); font-size: 14px; font-weight: 700; margin: 0; }
.lgsd-text-button { background: transparent; border: 0; color: var(--orange-dark); cursor: pointer; font-size: 13px; font-weight: 800; padding: 4px; }

.lgsd-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lgsd-card { background: var(--white); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 30px rgba(16, 32, 51, .05); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.lgsd-card:hover { box-shadow: 0 18px 45px rgba(16, 32, 51, .11); transform: translateY(-3px); }
.lgsd-card-image { height: 155px; overflow: hidden; position: relative; }
.lgsd-card-image img { height: 100%; object-fit: cover; width: 100%; }
.lgsd-card-image > b { background: #fff3df; border-radius: 999px; color: #9b4b07; font-size: 11px; left: 14px; padding: 7px 10px; position: absolute; top: 14px; text-transform: uppercase; }
.lgsd-placeholder, .lgsd-profile-placeholder { align-items: center; background: radial-gradient(circle at 75% 28%, rgba(255, 255, 255, .18), transparent 22%), linear-gradient(145deg, #173b59, #296582); color: rgba(255, 255, 255, .9); display: flex; font-family: Georgia, serif; font-size: 45px; font-weight: 700; height: 100%; justify-content: center; letter-spacing: -.04em; }
.lgsd-card:nth-child(3n+2) .lgsd-placeholder { background: radial-gradient(circle at 75% 28%, rgba(255,255,255,.16), transparent 22%), linear-gradient(145deg, #704421, #c4792d); }
.lgsd-card:nth-child(3n+3) .lgsd-placeholder { background: radial-gradient(circle at 75% 28%, rgba(255,255,255,.16), transparent 22%), linear-gradient(145deg, #275347, #3f8972); }
.lgsd-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.lgsd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.lgsd-tags span { background: #eef3f6; border-radius: 999px; color: #3c566d; font-size: 10px; font-weight: 800; padding: 5px 8px; text-transform: uppercase; }
.lgsd-card h3 { font-family: Georgia, serif; font-size: 23px; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 9px; }
.lgsd-card p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.lgsd-card dl { border-top: 1px solid #edf0f3; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: auto 0 17px; padding-top: 14px; }
.lgsd-card dl div { min-width: 0; }
.lgsd-card dt { color: #8791a0; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.lgsd-card dd { color: var(--ink); font-size: 12px; font-weight: 750; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgsd-card button, .lgsd-membership-grid button { background: var(--navy); border: 0; border-radius: 10px; color: var(--white); cursor: pointer; font-size: 13px; font-weight: 800; padding: 12px 14px; text-align: left; width: 100%; }
.lgsd-card button span { float: right; }
.lgsd-card button:hover { background: var(--navy-2); }
.lgsd-empty { align-items: center; background: var(--white); border: 1px dashed #bec9d4; border-radius: 16px; display: flex; flex-direction: column; grid-column: 1 / -1; padding: 50px 20px; text-align: center; }
.lgsd-empty span { color: var(--muted); font-size: 14px; margin-top: 4px; }

.lgsd-form-intro, .lgsd-membership-head { margin-bottom: 30px; max-width: 760px; }
.lgsd-form-intro h3, .lgsd-membership-head h3 { font-size: clamp(32px, 4.5vw, 48px); }
.lgsd-form-intro p, .lgsd-membership-head p { color: var(--muted); margin: 14px 0 0; }
.lgsd-form { background: var(--white); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 14px 40px rgba(16, 32, 51, .06); padding: clamp(20px, 4vw, 38px); }
.lgsd-form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.lgsd-form textarea { resize: vertical; }
.lgsd-form label small { color: #7a8694; display: block; font-size: 12px; margin-top: 5px; text-align: right; }
.lgsd-form label small.is-ready { color: var(--green); }
.lgsd-upload { background: #f6f8fa; border: 1px dashed #bbc6d1; border-radius: 12px; margin-top: 18px; padding: 16px; }
.lgsd-upload input { background: transparent; border: 0; padding: 5px 0; }
.lgsd-upload em { color: var(--muted); display: block; font-size: 12px; font-style: normal; }
.lgsd-photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lgsd-photo-preview img { border-radius: 9px; height: 72px; object-fit: cover; width: 72px; }
.lgsd-plans { border: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0 0; padding: 0; }
.lgsd-plans legend { grid-column: 1 / -1; }
.lgsd-plans label { align-items: center; border: 1px solid #cbd4dc; border-radius: 12px; cursor: pointer; display: flex; gap: 11px; padding: 15px; position: relative; }
.lgsd-plans label:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 143, 35, .12); }
.lgsd-plans input { accent-color: var(--orange-dark); width: auto; }
.lgsd-plans strong, .lgsd-plans small { display: block; }
.lgsd-plans small { color: var(--muted); }
.lgsd-plans b { background: #fff0dc; border-radius: 999px; color: #9b4b07; font-size: 10px; padding: 4px 7px; position: absolute; right: 10px; text-transform: uppercase; top: 9px; }
.lgsd-notice { background: #fff9ec; border: 1px solid #f5d69d; border-radius: 11px; color: #735323; font-size: 13px; margin: 18px 0; padding: 13px 15px; }
.lgsd-primary, .lgsd-secondary { align-items: center; border-radius: 10px; display: inline-flex; font-size: 14px; font-weight: 800; justify-content: center; padding: 13px 18px; text-decoration: none; }
button.lgsd-primary, a.lgsd-primary { background: var(--orange); border: 0; color: #291a09; cursor: pointer; }
button.lgsd-primary:hover, a.lgsd-primary:hover { background: #ffab45; }
button.lgsd-primary:disabled { cursor: wait; opacity: .6; }
.lgsd-secondary { background: #edf2f5; color: var(--navy); }
.lgsd-form-status { font-size: 13px; font-weight: 700; margin: 12px 0 0; }
.lgsd-form-status.is-error { color: #a73326; }
.lgsd-form-status.is-success { background: #e8f6ef; border-radius: 10px; color: #16604b; padding: 12px; }

.lgsd-membership-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.lgsd-membership-grid article { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; }
.lgsd-membership-grid article.is-featured { border: 2px solid var(--orange); box-shadow: 0 16px 40px rgba(191, 99, 17, .12); }
.lgsd-membership-grid article > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.lgsd-membership-grid article > strong { display: block; font-family: Georgia, serif; font-size: 44px; margin: 10px 0 16px; }
.lgsd-membership-grid article > strong small { color: var(--muted); font-family: Inter, sans-serif; font-size: 15px; }
.lgsd-membership-grid ul { color: #445267; margin: 0 0 22px; padding-left: 20px; }
.lgsd-membership-grid li { margin: 7px 0; }
.lgsd-membership-grid button { text-align: center; }
.lgsd-membership-grid .is-featured button { background: var(--orange); color: #291a09; }
.lgsd-center-note { color: var(--muted); font-size: 12px; max-width: 820px; text-align: center; }

.lgsd-modal[hidden] { display: none; }
.lgsd-modal { inset: 0; position: fixed; z-index: 999999; }
.lgsd-modal-backdrop { background: rgba(6, 17, 29, .72); inset: 0; position: absolute; }
.lgsd-modal-card { background: var(--white); border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.3); left: 50%; max-height: 88vh; max-width: 850px; overflow: auto; position: absolute; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); }
.lgsd-modal-close { align-items: center; background: rgba(255, 255, 255, .94); border: 0; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.16); cursor: pointer; display: flex; font-size: 25px; height: 38px; justify-content: center; position: absolute; right: 15px; top: 15px; width: 38px; z-index: 2; }
.lgsd-gallery { background: #dce4e9; display: grid; grid-auto-rows: 112px; grid-template-columns: 2fr 1fr 1fr; }
.lgsd-gallery img { height: 100%; object-fit: cover; width: 100%; }
.lgsd-gallery img:first-child { grid-row: span 2; }
.lgsd-profile-placeholder { height: 210px; }
.lgsd-profile-content { padding: clamp(24px, 5vw, 44px); }
.lgsd-profile-content h2 { font-family: Georgia, serif; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 0; }
.lgsd-profile-location { color: var(--muted); font-weight: 700; margin: 8px 0 20px; }
.lgsd-about { color: #364456; }
.lgsd-about p:last-child { margin-bottom: 0; }
.lgsd-profile-facts { background: #f3f6f8; border-radius: 12px; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 22px 0; padding: 16px; }
.lgsd-profile-facts span { display: block; }
.lgsd-profile-facts small, .lgsd-profile-facts strong { display: block; }
.lgsd-profile-facts small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.lgsd-profile-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.lgsd-disclaimer { color: #7d8794; font-size: 11px; margin: 18px 0 0; }
body.lgsd-modal-open { overflow: hidden; }

@media (max-width: 850px) {
  .lgsd-hero { grid-template-columns: 1fr; }
  .lgsd-safety { max-width: 360px; }
  .lgsd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .lgsd-app { border-radius: 14px; margin: 12px 0; }
  .lgsd-hero { padding-top: 40px; }
  .lgsd-searchbar, .lgsd-form-grid, .lgsd-plans, .lgsd-membership-grid { grid-template-columns: 1fr; }
  .lgsd-grid { grid-template-columns: 1fr; }
  .lgsd-tabs { padding-inline: 8px; }
  .lgsd-gallery { grid-auto-rows: 90px; grid-template-columns: 1fr 1fr; }
  .lgsd-gallery img:first-child { grid-column: span 2; grid-row: auto; }
  .lgsd-profile-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lgsd-card { transition: none; }
  .lgsd-card:hover { transform: none; }
}

