/* BAM Real Estate — native studio, stable images and low-churn UI */

.bam-studio-native{
  min-height:auto;
  overflow:visible;
  border-color:rgba(216,173,90,.16);
  background:
    radial-gradient(circle at 72% -8%,rgba(52,91,143,.18),transparent 32%),
    linear-gradient(150deg,rgba(10,34,63,.86),rgba(5,23,44,.72));
}

.bam-studio-hero{
  min-height:210px;
  padding:34px 38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  border-bottom:1px solid var(--line-soft);
  background:
    radial-gradient(circle at 8% 0%,rgba(216,173,90,.075),transparent 30%),
    linear-gradient(135deg,rgba(20,52,91,.78),rgba(9,31,57,.7));
}

.bam-studio-kicker{
  display:block;
  margin-bottom:10px;
  color:rgba(240,205,125,.72);
  font-size:10px;
  font-weight:600;
  letter-spacing:.22em;
}

.bam-studio-hero h2{
  margin:0;
  color:var(--text);
  font-family:var(--serif);
  font-size:clamp(38px,4vw,62px);
  font-weight:400;
  line-height:.98;
  letter-spacing:-.025em;
}

.bam-studio-hero h2 em{
  color:#9ba5b5;
  font-weight:400;
}

.bam-studio-hero h2 strong{
  color:var(--gold-2);
  font-weight:500;
}

.bam-studio-hero p{
  margin:15px 0 0;
  color:var(--muted);
  font-size:12px;
}

.bam-studio-hero p b{
  color:#d9dfe7;
  font-weight:500;
}

.bam-flow-pill{
  flex:0 0 auto;
  min-height:44px;
  padding:0 17px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(216,173,90,.28);
  border-radius:999px;
  background:rgba(4,18,34,.4);
  color:#9aa8ba;
  font-size:9px;
  font-weight:600;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.bam-flow-pill i{
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--gold);
  opacity:.7;
}

.bam-studio-grid{
  padding:22px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:20px;
  align-items:stretch;
}

.bam-studio-card{
  min-width:0;
  min-height:510px;
  padding:25px;
  border:1px solid var(--line-soft);
  border-radius:15px;
  background:
    linear-gradient(150deg,rgba(16,46,82,.78),rgba(6,25,48,.82));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 18px 40px rgba(0,0,0,.13);
}

.bam-step-head{
  min-height:55px;
  margin-bottom:18px;
  display:flex;
  align-items:flex-start;
  gap:13px;
}

.bam-step-head>span{
  width:31px;
  height:31px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:1px solid rgba(216,173,90,.38);
  border-radius:50%;
  background:rgba(216,173,90,.055);
  color:var(--gold-2);
  font-size:10px;
  font-weight:600;
}

.bam-step-head h3{
  margin:1px 0 3px;
  color:var(--text);
  font-family:var(--serif);
  font-size:24px;
  font-weight:500;
  line-height:1;
}

.bam-step-head p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.bam-drop-zone{
  position:relative;
  width:100%;
  min-height:322px;
  padding:28px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px dashed rgba(216,173,90,.35);
  border-radius:13px;
  background:
    radial-gradient(circle at 50% 34%,rgba(216,173,90,.07),transparent 36%),
    rgba(2,16,31,.32);
  color:var(--text);
  text-align:center;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,transform .2s ease;
}

.bam-drop-zone:hover,.bam-drop-zone.drag{
  border-color:rgba(240,205,125,.72);
  background:rgba(216,173,90,.065);
}

.bam-drop-zone:active{transform:scale(.997)}

.bam-upload-icon{
  width:58px;
  height:58px;
  margin-bottom:7px;
  display:grid;
  place-items:center;
  border:1px solid rgba(216,173,90,.24);
  border-radius:50%;
  background:rgba(216,173,90,.06);
  color:var(--gold);
}

.bam-upload-icon svg{width:27px;height:27px;stroke:currentColor;fill:none}
.bam-drop-zone strong{font-family:var(--serif);font-size:21px;font-weight:500}
.bam-drop-zone small{color:var(--muted-2);font-size:10px;letter-spacing:.03em}

.bam-drop-zone.has-image{padding:0;border-style:solid;background:#071a31}
.bam-drop-zone.has-image>img{width:100%;height:322px;object-fit:cover}
.bam-change-image{
  position:absolute;
  left:50%;
  bottom:17px;
  transform:translateX(-50%);
  min-height:39px;
  padding:0 15px;
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(3,15,29,.76);
  color:#fff;
  font-size:11px;
  white-space:nowrap;
  backdrop-filter:blur(12px);
}
.bam-change-image svg{width:16px;height:16px}

.bam-photo-actions{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:10px;
  margin-top:12px;
}

.bam-photo-actions button{
  min-height:47px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.bam-photo-actions button svg{width:18px;height:18px;margin:0}

.bam-file-name{
  min-height:35px;
  margin-top:10px;
  padding:0 10px;
  display:flex;
  align-items:center;
  gap:8px;
  border-radius:8px;
  background:rgba(65,142,86,.09);
  color:#9dd5a8;
  font-size:10px;
}
.bam-file-name svg{width:15px;height:15px}

.bam-studio-label{
  display:block;
  margin:2px 0 8px;
  color:#bcc6d4;
  font-size:11px;
}

.bam-direction-card textarea{
  width:100%;
  min-height:245px;
  padding:17px;
  resize:vertical;
  border:1px solid rgba(255,255,255,.09);
  border-radius:12px;
  outline:0;
  background:rgba(2,14,29,.48);
  color:var(--text);
  font-family:var(--sans);
  font-size:14px;
  line-height:1.6;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
  -webkit-appearance:none;
  appearance:none;
}

.bam-direction-card textarea::placeholder{color:#6e7d92}
.bam-direction-card textarea:focus{border-color:rgba(216,173,90,.62);box-shadow:0 0 0 3px rgba(216,173,90,.08)}

.bam-studio-options{
  margin-top:14px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.bam-studio-options>label:not(.bam-switch){
  min-height:65px;
  padding:10px 12px;
  border:1px solid var(--line-soft);
  border-radius:10px;
  background:rgba(255,255,255,.018);
}

.bam-studio-options label>span:first-child{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.09em;
}

.bam-studio-options select{
  width:100%;
  min-height:31px;
  padding:0 30px 0 0;
  border:0;
  outline:0;
  background-color:transparent;
  background-image:linear-gradient(45deg,transparent 50%,#9daabd 50%),linear-gradient(135deg,#9daabd 50%,transparent 50%);
  background-position:calc(100% - 11px) 13px,calc(100% - 6px) 13px;
  background-size:5px 5px,5px 5px;
  background-repeat:no-repeat;
  color:var(--text);
  -webkit-appearance:none;
  appearance:none;
}

.bam-switch{
  min-height:65px;
  padding:11px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line-soft);
  border-radius:10px;
  background:rgba(255,255,255,.018);
  cursor:pointer;
}

.bam-switch input{position:absolute;opacity:0;pointer-events:none}
.bam-switch>span{
  position:relative;
  width:42px;
  height:24px;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:#06182e;
  transition:.2s ease;
}
.bam-switch>span::after{
  content:"";
  position:absolute;
  left:3px;
  top:3px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#8996a8;
  transition:.2s ease;
}
.bam-switch input:checked+span{border-color:var(--gold);background:rgba(216,173,90,.22)}
.bam-switch input:checked+span::after{transform:translateX(18px);background:var(--gold-2)}
.bam-switch b{color:#d1d8e2;font-size:11px;font-weight:500}

.bam-guidance{
  margin-top:13px;
  padding:13px 14px;
  display:grid;
  grid-template-columns:30px 1fr;
  gap:10px;
  align-items:start;
  border-left:2px solid rgba(216,173,90,.62);
  border-radius:0 8px 8px 0;
  background:rgba(216,173,90,.045);
}
.bam-guidance>span{color:var(--gold)}
.bam-guidance svg{width:21px;height:21px}
.bam-guidance p{margin:0;color:var(--muted);font-size:10px;line-height:1.55}
.bam-guidance strong{display:block;margin-bottom:2px;color:#dce1e8;font-size:11px;font-weight:500}

.bam-generate-bar{
  min-height:92px;
  margin:0 22px 22px;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border:1px solid var(--line-soft);
  border-radius:13px;
  background:linear-gradient(135deg,rgba(9,33,61,.88),rgba(5,22,42,.9));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.bam-generate-bar strong{display:block;color:#dfe4ea;font-size:12px;font-weight:500}
.bam-generate-bar small{display:block;margin-top:4px;color:var(--muted);font-size:10px}
.bam-generate-bar small.error{color:#f19a95}
.bam-generate{min-width:205px;min-height:50px;display:flex;align-items:center;justify-content:center;gap:8px}
.bam-generate svg{margin:0}
.bam-generate:disabled svg{animation:bamSpin .9s linear infinite}
@keyframes bamSpin{to{transform:rotate(360deg)}}

/* Stable media placeholders */
.bam-project-card,.bam-detail-cover,.bam-thumb,.bam-compare,.bam-archive-preview{background-color:#081d35}
.bam-project-cover,.bam-detail-cover img,.bam-thumb img,.bam-compare img,.bam-archive-preview img{
  opacity:1;
  transition:opacity .18s ease;
}
.bam-image-failed{opacity:0!important}
.bam-image-container-failed{
  background:
    radial-gradient(circle at 50% 42%,rgba(216,173,90,.09),transparent 32%),
    linear-gradient(145deg,#0c294b,#071d37)!important;
}
.bam-open-project{margin:13px 0 2px}

/* Job details update without rebuilding the page */
.bam-video-jobs>div em{
  grid-column:2;
  color:#6f8198;
  font-size:9px;
  font-style:normal;
}
.bam-video-jobs small b{color:#b9c4d2;font-weight:500}

@media(max-width:1100px){
  .bam-studio-hero{align-items:flex-start;flex-direction:column}
  .bam-flow-pill{align-self:flex-start}
}

@media(max-width:980px){
  .bam-studio-grid{grid-template-columns:1fr}
  .bam-studio-card{min-height:auto}
  .bam-photo-card,.bam-direction-card{padding:22px}
  .bam-drop-zone,.bam-drop-zone.has-image>img{min-height:300px;height:300px}
  .bam-generate-bar{position:sticky;bottom:12px;z-index:12;box-shadow:0 22px 60px rgba(0,0,0,.35)}
}

@media(max-width:720px){
  .bam-studio-hero{min-height:auto;padding:25px 19px}
  .bam-studio-hero h2{font-size:39px}
  .bam-flow-pill{width:100%;overflow-x:auto;border-radius:10px;justify-content:flex-start}
  .bam-studio-grid{padding:12px;gap:12px}
  .bam-studio-card{padding:17px;border-radius:12px}
  .bam-drop-zone,.bam-drop-zone.has-image>img{min-height:240px;height:240px}
  .bam-photo-actions{grid-template-columns:1fr}
  .bam-studio-options{grid-template-columns:1fr}
  .bam-direction-card textarea{min-height:190px}
  .bam-generate-bar{margin:0 12px 84px;padding:15px;align-items:stretch;flex-direction:column}
  .bam-generate{width:100%;min-width:0}
}
