.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.pdf-btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}

.pdf-btn {
  background: #fff0ee;
  color: #b42318;
}
.word-btn { border: 0; border-radius: 10px; padding: 11px 16px; background: #eaf2ff; color: #24549a; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.contract-output-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.contract-output-actions button { padding: 8px 9px; font-size: 10px; }

.pdf-btn .material-symbols-rounded { font-size: 18px; }
.word-btn .material-symbols-rounded { font-size: 18px; }
.upload-button { cursor: pointer; }

.photo-upload {
  min-height: 126px;
  border: 2px dashed #b9c9c4;
  border-radius: 14px;
  background: #f6fbf9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #087a55;
  cursor: pointer;
  transition: .2s;
}

.photo-upload:hover { border-color: #087a55; background: #edfaf5; }
.photo-upload .material-symbols-rounded { font-size: 36px; }
.photo-upload small { color: #667085; font-weight: 400; }
.photo-previews { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.photo-previews figure { margin: 0; height: 100px; border-radius: 11px; overflow: hidden; position: relative; background: #e7eeeb; }
.photo-previews img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-previews button { position: absolute; right: 5px; top: 5px; width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; background: rgba(7,27,45,.82); color: #fff; }
.photo-previews button span { font-size: 17px; }
.photo-previews figcaption { position: absolute; left: 6px; bottom: 6px; padding: 4px 7px; border-radius: 7px; background: #54e5ae; color: #063524; font-size: 10px; font-weight: 800; }

.detail-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.detail-thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.detail-actions .primary-btn { grid-column: 1 / -1; }

.tour-stage { cursor: grab; user-select: none; touch-action: none; transition: filter .25s; background-repeat: repeat-x; }
.tour-stage.dragging { cursor: grabbing; }
.tour-stage.night { filter: brightness(.58) saturate(.8) contrast(1.08); }
.tour-stage .tour-focus { pointer-events: none; }
.tour-tools button { display: grid; place-items: center; }
.tour-upload-card { border: 1px dashed #526068; background: #1a2327; color: #fff; border-radius: 12px; padding: 15px; display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; cursor: pointer; margin: 20px 0; }
.tour-upload-card .material-symbols-rounded { grid-row: 1 / 3; color: #54e5ae; font-size: 31px; }
.tour-upload-card small { color: #9eabb2; font-size: 11px; margin-top: 3px; }

.tour-room-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
}

.room-tab {
  flex: 0 0 155px;
  min-height: 82px;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px 9px;
  align-items: center;
  text-align: left;
  padding: 9px;
  border: 1px solid #dce5e2;
  border-radius: 13px;
  background: #fff;
  color: #071b2d;
}

.room-tab > span:first-child {
  grid-row: 1 / 3;
  width: 54px;
  height: 58px;
  border-radius: 9px;
  background: #dce7e3 center / cover;
}

.room-tab b { align-self: end; font-size: 12px; }
.room-tab small { align-self: start; color: #667085; }
.room-tab.active { border-color: #087a55; box-shadow: 0 0 0 3px rgba(8,122,85,.12); }
.room-tab.add-room { border-style: dashed; color: #087a55; cursor: pointer; }
.room-tab.add-room > span:first-child { display: grid; place-items: center; background: #d9faed; font-size: 27px; }

.room-hotspot {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 92px;
  padding: 10px 12px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 15px;
  background: rgba(7,27,45,.83);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  animation: hotspotPulse 2s ease-in-out infinite;
}

.room-hotspot .material-symbols-rounded { color: #54e5ae; font-size: 27px; }
.room-hotspot b { font-size: 11px; }
.room-hotspot:hover { background: #087a55; transform: translate(-50%, -50%) scale(1.05); }
.tour-scene-title { position: absolute; z-index: 3; left: 24px; bottom: 24px; padding: 14px 17px; border-radius: 12px; background: rgba(7,27,45,.78); backdrop-filter: blur(8px); }
.tour-scene-title h2 { margin: 0 0 4px; color: #54e5ae; font: 700 22px 'Plus Jakarta Sans'; }
.tour-scene-title p { margin: 0; font-size: 11px; color: #dfe9e5; }
.scene-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 0; }
.scene-actions button { padding: 9px; }
.tour-guide { padding: 14px; border-radius: 11px; background: #1a2327; color: #fff; font-size: 12px; }
.tour-guide b { color: #54e5ae; }
.tour-guide ol { margin: 9px 0 0; padding-left: 18px; color: #b9c4ca; line-height: 1.65; }

@keyframes hotspotPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 0 rgba(84,229,174,.35); }
  50% { box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 9px rgba(84,229,174,0); }
}

.listing-stats { margin-bottom: 16px; }
.integration-note { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid #bce7d7; background: #effbf6; border-radius: 14px; margin-bottom: 20px; color: #075a41; }
.integration-note > span { font-size: 26px; }
.integration-note p { margin: 4px 0 0; color: #475467; font-size: 13px; }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.listing-card { display: grid; grid-template-columns: 230px 1fr; min-height: 290px; }
.listing-cover { min-height: 100%; background: #dce7e3 center / cover; padding: 14px; }
.listing-body { padding: 18px; }
.listing-body h3 { margin: 9px 0 5px; font: 700 18px 'Plus Jakarta Sans'; }
.listing-body p { margin: 5px 0; color: #667085; font-size: 13px; }
.listing-body > strong { display: block; margin: 10px 0; font-size: 19px; }
.portal-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.portal-pills span { padding: 5px 8px; background: #071b2d; color: #fff; border-radius: 7px; font-size: 10px; font-weight: 700; }
.check-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0; }
.check-list span { display: inline-flex; align-items: center; gap: 3px; border-radius: 7px; padding: 5px 7px; font-size: 10px; font-weight: 700; }
.check-list i { font-size: 14px; }
.check-list .pass { color: #087a55; background: #d9faed; }
.check-list .fail { color: #b42318; background: #fff0ee; }
.card-actions button:disabled { opacity: .45; cursor: not-allowed; }
.portal-selects { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-selects label { border: 1px solid #e3e9ed; border-radius: 9px; padding: 10px 12px; background: #f8fafb; }
.consent { align-content: end; }
.listing-preview { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.listing-hero { min-height: 430px; border-radius: 15px; background: #dce7e3 center / cover; position: relative; }
.listing-hero > span { position: absolute; left: 14px; top: 14px; background: #54e5ae; color: #063524; padding: 7px 10px; border-radius: 9px; font-weight: 800; font-size: 12px; }

.portal-code-box { text-align: center; display: grid; place-items: center; gap: 10px; padding: 10px; }
.portal-code-box > .material-symbols-rounded { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: #d9faed; color: #087a55; font-size: 32px; }
.portal-code-box p { margin: 5px 0 0; }
.portal-code-box strong { font: 800 36px 'Plus Jakarta Sans'; letter-spacing: 8px; color: #071b2d; }
.portal-code-box small { color: #667085; max-width: 390px; line-height: 1.5; }
.portal-code-box button { margin-top: 7px; }
.portal-customer-list { display: grid; gap: 9px; }
.portal-customer-list > button { display: grid; grid-template-columns: 46px 1fr 24px; text-align: left; justify-content: stretch; }
.portal-customer-list .customer-avatar { width: 42px; height: 42px; border-radius: 12px; }
.portal-customer-list b,.portal-customer-list small { display: block; }
.portal-customer-list small { color: #667085; margin-top: 4px; font-weight: 400; }

.nav-sub { display: grid; gap: 3px; margin: -2px 0 4px 37px; padding-left: 10px; border-left: 2px solid #dce7e3; }
.nav-sub button { border: 0; background: transparent; text-align: left; color: #667085; padding: 7px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.nav-sub button.active { background: #eef9f5; color: #087a55; }
.portfolio-type-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 13px; }
.portfolio-type-tabs button { border: 1px solid #dce5e2; border-radius: 14px; background: #fff; color: #475467; padding: 15px 18px; display: flex; align-items: center; gap: 9px; font-weight: 800; }
.portfolio-type-tabs button b { margin-left: auto; min-width: 28px; height: 28px; border-radius: 14px; background: #edf1f3; display: grid; place-items: center; }
.portfolio-type-tabs button.active { background: #071b2d; color: #fff; border-color: #071b2d; }
.portfolio-type-tabs button.active b { background: #54e5ae; color: #063524; }
.room-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 18px; }
.room-tabs button { border: 1px solid #dce5e2; background: #fff; color: #475467; padding: 9px 12px; border-radius: 999px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.room-tabs button b { color: #087a55; margin-left: 4px; }
.room-tabs button.active { background: #d9faed; border-color: #87dabe; color: #087a55; }

.finance-home-grid { grid-template-columns: 1.35fr .65fr; margin-bottom: 20px; }
.transaction-list { display: grid; gap: 10px; }
.transaction-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; border: 1px solid #e3e9ed; border-radius: 13px; padding: 13px; }
.transaction-icon { width: 42px; height: 42px; border-radius: 11px; background: #d9faed; color: #087a55; display: grid; place-items: center; }
.transaction-row small { display: block; color: #667085; margin-top: 4px; }
.transaction-amount { display: grid; justify-items: end; gap: 5px; }
.transaction-amount button { padding: 7px 9px; font-size: 10px; }
.expense-text { color: #d92d20; }
.rent-tracking-panel { margin-top: 20px; }
.rent-tracking-panel .panel-head > div small { display: block; color: #667085; margin-top: 4px; }
.transaction-section { grid-column: 1 / -1; border: 1px solid #dfe7e4; border-radius: 14px; padding: 15px; margin-bottom: 13px; background: #f8fbfa; }
.transaction-section[hidden] { display: none !important; }
.transaction-section h3 { margin: 0 0 13px; font: 700 16px 'Plus Jakarta Sans'; }
.legal-note { display: flex; gap: 8px; align-items: center; background: #fff4dc; color: #8a5200; border-radius: 9px; padding: 10px 12px; font-size: 11px; line-height: 1.4; }
.legal-note .material-symbols-rounded { flex: none; }
.rent-payment-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 13px; border-radius: 12px; background: #eef9f5; }
.rent-payment-summary b,.rent-payment-summary span { display: block; }
.rent-payment-summary span { color: #667085; font-size: 12px; }
.rent-payment-summary strong { margin-left: auto; font-size: 20px; }

.customer-role-pills { display: flex; flex-wrap: wrap; gap: 5px; min-height: 25px; margin-top: 11px; }
.customer-role-pills span { border-radius: 7px; padding: 5px 7px; background: #edf6f2; color: #087a55; font-size: 9px; font-weight: 800; }
.customer-role-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.customer-role-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 39px; padding: 8px 13px; border: 1px solid #d9e3df; border-radius: 10px; background: #fff; color: #415067; font: 700 11px 'Plus Jakarta Sans'; cursor: pointer; }
.customer-role-tabs button:hover { border-color: #47cfa4; color: #087a55; }
.customer-role-tabs button.active { border-color: #0b8f68; background: #e7f8f2; color: #087a55; box-shadow: 0 0 0 2px rgba(11,143,104,.08); }
.customer-role-tabs b { min-width: 22px; padding: 3px 6px; border-radius: 999px; background: #edf1f3; color: #4f5e70; text-align: center; font-size: 9px; }
.customer-role-tabs button.active b { background: #c8f1e3; color: #067451; }
.customer-role-pills .role-kiraci { background: #eef3ff; color: #3159a6; }
.customer-role-pills .role-satici { background: #fff3de; color: #9b5d00; }
.customer-role-pills .role-alici { background: #f1ebff; color: #7047b5; }
.customer-role-pills .role-empty { background: #f3f5f6; color: #77818e; }
.demand-stats { margin-bottom: 17px; }
.demand-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.demand-toolbar .customer-role-tabs { margin-bottom: 0; }
.demand-toolbar > .input { max-width: 360px; }
.demand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.demand-card { padding: 17px; border: 1px solid #e0e8e5; }
.demand-card.has-match { border-color: #54cfa5; box-shadow: 0 8px 26px rgba(8,122,85,.08); }
.demand-card > header { display: grid; grid-template-columns: 46px 1fr auto; gap: 11px; align-items: center; }
.demand-card > header .customer-avatar { width: 46px; height: 46px; border-radius: 12px; }
.demand-card > header h3 { margin: 0; font: 800 16px 'Plus Jakarta Sans'; }
.demand-card > header p { margin: 4px 0 0; color: #667085; font-size: 11px; }
.demand-criteria { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 10px; }
.demand-criteria span { display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px; border-radius: 8px; background: #f1f5f4; color: #354156; font-size: 10px; font-weight: 700; }
.demand-criteria i { color: #087a55; font-size: 15px; }
.demand-note { margin: 8px 0 12px; padding: 10px 12px; border-left: 3px solid #9db4ac; background: #fafcfb; color: #526071; font-size: 11px; line-height: 1.5; }
.follow-up { display: flex; gap: 9px; align-items: center; padding: 10px 11px; border-radius: 10px; background: #f3f6f7; color: #475467; }
.follow-up > .material-symbols-rounded { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #e4ebee; }
.follow-up small,.follow-up b,.follow-up span { display: block; }
.follow-up small { color: #7a8795; font-size: 8px; letter-spacing: .06em; }
.follow-up b { margin: 2px 0; font-size: 11px; }
.follow-up span { color: #7a8795; font-size: 9px; }
.follow-up.due { background: #fff4e5; color: #985c00; }
.follow-up.due > .material-symbols-rounded { background: #ffe0aa; }
.match-box { margin-top: 12px; padding: 12px; border: 1px solid #e1e8e5; border-radius: 11px; background: #fbfdfc; }
.match-box > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; font-size: 11px; }
.match-box > p { margin: 8px 0 0; color: #7a8795; font-size: 10px; line-height: 1.5; }
.match-live { padding: 4px 7px; border-radius: 999px; background: #d9faed; color: #087a55; font-size: 8px; font-weight: 900; letter-spacing: .04em; }
.match-property { display: grid; grid-template-columns: 46px 1fr auto 30px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #edf1f0; }
.match-property img { width: 46px; height: 38px; border-radius: 8px; object-fit: cover; background: #e4ebe8; }
.match-property b,.match-property small { display: block; }
.match-property small { margin-top: 3px; color: #7a8795; font-size: 9px; }
.match-property strong { font-size: 10px; }
.match-property .icon-btn span { font-size: 16px; }
.demand-card > footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 13px; }
.demand-card > footer button { padding: 8px 10px; font-size: 10px; }
.customer-finance-profile > header { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #e3e9ed; }
.customer-finance-profile > header .customer-avatar { width: 58px; height: 58px; }
.customer-finance-profile > header h2 { margin: 0; font: 800 21px 'Plus Jakarta Sans'; }
.customer-finance-profile > header p { margin: 5px 0 0; color: #667085; font-size: 12px; }
.profile-actions { display: flex; gap: 7px; }
.customer-relation-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 17px 0; }
.customer-relation-stats > div { border: 1px solid #e3e9ed; border-radius: 12px; padding: 12px; display: grid; grid-template-columns: 33px 1fr; align-items: center; }
.customer-relation-stats span { grid-row: 1 / 3; width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: #d9faed; color: #087a55; }
.customer-relation-stats b { font-size: 18px; }
.customer-relation-stats small { color: #667085; font-size: 9px; }
.customer-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.customer-section { border: 1px solid #e3e9ed; border-radius: 13px; padding: 14px; margin-top: 14px; }
.customer-section h3 { margin: 0 0 11px; font: 700 15px 'Plus Jakarta Sans'; }
.compact-property,.customer-transaction { display: grid; grid-template-columns: 46px 1fr auto; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf1f3; }
.compact-property:last-child,.customer-transaction:last-child { border: 0; }
.compact-property img { width: 46px; height: 40px; border-radius: 8px; object-fit: cover; background: #e3e9ed; }
.compact-property small,.customer-transaction small { display: block; color: #667085; font-size: 10px; margin-top: 3px; }
.compact-property strong,.customer-transaction strong { font-size: 11px; }
.customer-transaction > span { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: #eef9f5; color: #087a55; }
.profile-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; color: #667085; font-size: 12px; }
.profile-footer > div { display: flex; gap: 7px; }
.muted { color: #667085; }

@media (max-width: 1380px) {
  .listing-card { grid-template-columns: 180px 1fr; }
  .demand-grid { grid-template-columns: 1fr; }
}

@media print {
  .pdf-btn, .integration-note, .photo-upload, .tour-upload-card { display: none !important; }
}
