/* dashboard.css — Auth, Reviews, Dashboard styles — Caparaó Destinos */

/* ---- FORM INPUTS ---- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .83rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.form-input { width: 100%; padding: 12px 16px; border: 2px solid var(--cream-darker); border-radius: var(--radius-md); font-family: var(--font-b); font-size: .95rem; color: var(--text-dark); background: var(--white); transition: border-color .2s; }
.form-input:focus { outline: none; border-color: var(--forest-mid); box-shadow: 0 0 0 3px rgba(45,122,80,.12); }
.form-input.error { border-color: #e53e3e; }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 100px; }
.form-error { background: #fff5f5; border: 1px solid #fed7d7; color: #c53030; padding: 12px 16px; border-radius: var(--radius-md); font-size: .88rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.form-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; padding: 12px 16px; border-radius: var(--radius-md); font-size: .88rem; margin-bottom: 16px; }

/* ---- AUTH PAGE ---- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { background: linear-gradient(160deg, var(--forest-dark) 0%, var(--forest) 100%); display: flex; flex-direction: column; justify-content: center; padding: 60px 48px; position: relative; overflow: hidden; }
.auth-left::before { content:''; position:absolute; bottom:-20%; right:-20%; width:500px; height:500px; background: radial-gradient(circle, rgba(45,122,80,.3) 0%, transparent 70%); }
.auth-left-logo { margin-bottom: 48px; }
.auth-left h2 { font-family: var(--font-h); font-size: clamp(1.8rem,3vw,2.5rem); color: var(--white); margin-bottom: 16px; }
.auth-left p { color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 28px; }
.auth-feature { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.8); font-size: .9rem; margin-bottom: 12px; }
.auth-feature-icon { width: 32px; height: 32px; background: rgba(240,165,32,.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--amber); flex-shrink: 0; }
.auth-right { display: flex; flex-direction: column; justify-content: center; padding: 60px 48px; background: var(--cream); overflow-y: auto; }
.auth-card { max-width: 420px; width: 100%; margin: 0 auto; }
.auth-card h1 { font-family: var(--font-h); font-size: 1.8rem; color: var(--forest-dark); margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--text-light); font-size: .9rem; margin-bottom: 28px; }

/* Type selector */
.type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.type-btn { padding: 14px 12px; border: 2px solid var(--cream-darker); border-radius: var(--radius-md); text-align: center; cursor: pointer; transition: all .2s; background: var(--white); }
.type-btn:hover { border-color: var(--forest-mid); }
.type-btn.active { border-color: var(--forest-mid); background: var(--forest); color: var(--white); }
.type-btn.active .type-icon { color: var(--amber); }
.type-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.type-label { font-size: .83rem; font-weight: 600; }

/* Tabs */
.auth-tabs { display: flex; border-bottom: 2px solid var(--cream-darker); margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 12px; font-size: .9rem; font-weight: 600; color: var(--text-light); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s; }
.auth-tab.active { color: var(--forest-mid); border-bottom-color: var(--forest-mid); }
.auth-tab-content { display: none; }
.auth-tab-content.active { display: block; }

/* ---- REVIEWS ---- */
.reviews-section { }
.reviews-summary { display: flex; align-items: center; gap: 20px; background: var(--forest-dark); color: var(--white); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 20px; }
.reviews-avg-num { font-family: var(--font-h); font-size: 3rem; font-weight: 700; color: var(--amber); line-height: 1; }
.reviews-count { font-size: .83rem; color: rgba(255,255,255,.65); margin-top: 4px; }
.review-form { background: var(--cream-dark); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; }
.review-form-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rev-avatar { width: 38px; height: 38px; background: var(--forest-mid); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--white); font-size: 1rem; flex-shrink: 0; }
.star-input-wrap { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.cd-star { font-size: 1.6rem; color: #ccc; cursor: pointer; line-height: 1; transition: color .1s, transform .1s; }
.cd-star:hover { transform: scale(1.2); }
.star-hint { font-size: .78rem; color: var(--text-light); margin-left: 6px; }
.review-textarea { width: 100%; padding: 12px; border: 2px solid var(--cream-darker); border-radius: var(--radius-md); font-family: var(--font-b); font-size: .9rem; resize: vertical; margin-bottom: 12px; transition: border-color .2s; }
.review-textarea:focus { outline: none; border-color: var(--forest-mid); }
.review-login-prompt { text-align: center; background: var(--cream-dark); border-radius: var(--radius-md); padding: 28px 20px; margin-bottom: 20px; }
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-card { background: var(--white); border-radius: var(--radius-md); padding: 18px; border: 1px solid var(--cream-darker); }
.review-card.own { border-color: var(--forest-mid); border-left: 4px solid var(--forest-mid); }
.review-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.review-meta { flex: 1; }
.review-name { font-weight: 600; font-size: .9rem; }
.review-date { font-size: .75rem; color: var(--text-light); margin-top: 2px; }
.own-badge { display: inline-block; background: var(--forest); color: var(--white); font-size: .65rem; padding: 2px 7px; border-radius: 999px; font-weight: 600; margin-left: 6px; vertical-align: middle; }
.review-text { color: var(--text-mid); font-size: .9rem; line-height: 1.65; }
.no-reviews { text-align: center; padding: 36px 16px; background: var(--cream-dark); border-radius: var(--radius-md); }
/* Owner reply under review */
.owner-reply { background: rgba(45,122,80,.06); border-left: 3px solid var(--forest-mid); padding: 12px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: 10px; }
.owner-reply-label { font-size: .75rem; font-weight: 700; color: var(--forest-mid); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.owner-reply p { font-size: .88rem; color: var(--text-mid); }

/* Questions section */
.question-form { background: var(--cream-dark); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; }
.question-card { background: var(--white); border-radius: var(--radius-md); padding: 16px; border: 1px solid var(--cream-darker); margin-bottom: 10px; }
.question-text { font-size: .9rem; font-weight: 500; color: var(--text-dark); margin-bottom: 4px; }

/* ---- PROFILE PAGE ---- */
.profile-hero { background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 100%); padding: 100px 0 48px; color: var(--white); }
.profile-avatar-lg { width: 80px; height: 80px; background: var(--amber); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-size: 2.2rem; font-weight: 700; color: var(--forest-dark); margin-bottom: 16px; border: 4px solid rgba(255,255,255,.3); }
.profile-stats { display: flex; gap: 28px; margin-top: 16px; }
.profile-stat-num { font-family: var(--font-h); font-size: 1.6rem; font-weight: 700; color: var(--amber); }
.profile-stat-label { font-size: .8rem; color: rgba(255,255,255,.65); }
.profile-review-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px; border: 1px solid var(--cream-darker); }
.profile-review-biz { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing:.05em; color: var(--forest-mid); margin-bottom: 6px; }

/* ---- OWNER DASHBOARD ---- */
.painel-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.painel-sidebar { background: var(--forest-dark); border-radius: var(--radius-lg); padding: 28px; color: var(--white); position: sticky; top: 88px; }
.painel-biz-avatar { width: 64px; height: 64px; background: var(--amber); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 14px; }
.painel-biz-name { font-family: var(--font-h); font-size: 1.2rem; margin-bottom: 4px; }
.painel-biz-type { font-size: .78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; }
.painel-nav { display: flex; flex-direction: column; gap: 4px; }
.painel-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-md); color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.painel-nav-item:hover { background: rgba(255,255,255,.08); color: var(--white); }
.painel-nav-item.active { background: rgba(240,165,32,.2); color: var(--amber); }
.painel-nav-item i { width: 18px; text-align: center; }
.painel-content { }
.painel-tab { display: none; }
.painel-tab.active { display: block; }
.painel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.painel-header h2 { font-family: var(--font-h); font-size: 1.5rem; color: var(--forest-dark); }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); text-align: center; }
.stat-card-num { font-family: var(--font-h); font-size: 2rem; font-weight: 700; color: var(--forest-mid); }
.stat-card-label { font-size: .78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
/* Photo grid in painel */
.photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.photo-thumb { aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; position: relative; background: var(--cream-darker); }
.photo-thumb img { width:100%; height:100%; object-fit:cover; }
.photo-remove { position:absolute; top:6px; right:6px; background:rgba(0,0,0,.6); color:#fff; border:none; border-radius:50%; width:24px; height:24px; display:flex; align-items:center; justify-content:center; font-size:.75rem; cursor:pointer; }
.photo-add-btn { aspect-ratio:1; border-radius:var(--radius-md); border:2px dashed var(--cream-darker); display:flex; flex-direction:column; align-items:center; justify-content:center; cursor:pointer; transition:all .2s; color:var(--text-light); font-size:.85rem; gap:8px; }
.photo-add-btn:hover { border-color:var(--forest-mid); color:var(--forest-mid); background:rgba(45,122,80,.05); }
/* Painel review card with reply */
.painel-review-card { background:var(--white); border-radius:var(--radius-md); padding:18px; border:1px solid var(--cream-darker); margin-bottom:14px; }
.reply-textarea { width:100%; padding:10px 12px; border:2px solid var(--cream-darker); border-radius:var(--radius-md); font-family:var(--font-b); font-size:.88rem; resize:vertical; margin:10px 0 8px; }
.reply-textarea:focus { outline:none; border-color:var(--forest-mid); }
.badge-new { display:inline-block; background:var(--amber); color:var(--forest-dark); font-size:.65rem; font-weight:700; padding:2px 8px; border-radius:999px; margin-left:8px; vertical-align:middle; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 24px; }
  .painel-layout { grid-template-columns: 1fr; }
  .painel-sidebar { position: static; }
  .painel-nav { flex-direction: row; flex-wrap: wrap; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(2,1fr); }
}

/* ---- WEATHER WIDGET ---- */
.weather-compact { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.wc-icon { font-size:2rem; line-height:1; }
.wc-temp { font-family:var(--font-h); font-size:2rem; font-weight:700; color:var(--white); line-height:1; }
.wc-divider { width:1px; height:32px; background:rgba(255,255,255,.2); }
.wc-label { font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.5); margin-bottom:2px; }
.wc-cond { font-size:.9rem; color:rgba(255,255,255,.85); font-weight:500; }
.wc-meta { display:flex; flex-direction:column; gap:4px; font-size:.8rem; color:rgba(255,255,255,.7); }

/* Full weather widget */
.weather-full { background:linear-gradient(135deg, var(--forest-dark) 0%, #1a4a35 100%); border-radius:var(--radius-lg); overflow:hidden; color:var(--white); }
.wf-main { display:grid; grid-template-columns:1fr auto; gap:24px; padding:32px; }
.wf-location { font-size:.78rem; color:rgba(255,255,255,.55); text-transform:uppercase; letter-spacing:.08em; margin-bottom:12px; }
.wf-temp-big { font-family:var(--font-h); font-size:5rem; font-weight:700; color:var(--white); line-height:1; margin-bottom:8px; }
.wf-unit { font-size:2rem; color:rgba(255,255,255,.6); }
.wf-condition { font-size:1.2rem; margin-bottom:12px; }
.wf-tip { font-size:.85rem; color:rgba(255,255,255,.65); background:rgba(255,255,255,.08); padding:10px 14px; border-radius:var(--radius-md); border-left:3px solid var(--amber); }
.wf-main-right { display:flex; flex-direction:column; gap:12px; padding:8px 0; min-width:160px; }
.wf-stat { display:flex; align-items:center; gap:10px; font-size:.9rem; color:rgba(255,255,255,.75); }
.wf-stat i { width:16px; color:var(--amber); text-align:center; }
.wf-stat span { flex:1; }
.wf-stat strong { color:var(--white); font-weight:600; }
.wf-updated { font-size:.72rem; color:rgba(255,255,255,.35); margin-top:auto; }
.wf-forecast-title { padding:12px 32px; font-size:.75rem; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.4); border-top:1px solid rgba(255,255,255,.08); }
.wf-forecast { display:grid; grid-template-columns:repeat(5,1fr); gap:0; border-top:1px solid rgba(255,255,255,.08); }
.wf-day { text-align:center; padding:16px 8px; border-right:1px solid rgba(255,255,255,.06); }
.wf-day:last-child { border-right:none; }
.wf-dayname { font-size:.75rem; text-transform:uppercase; letter-spacing:.06em; color:rgba(255,255,255,.45); margin-bottom:8px; }
.wf-icon { font-size:1.5rem; margin-bottom:8px; }
.wf-max { font-weight:700; color:var(--white); font-size:.95rem; }
.wf-min { font-size:.82rem; color:rgba(255,255,255,.45); margin-top:2px; }
.wf-prec { font-size:.72rem; color:rgba(255,255,255,.35); margin-top:4px; }

/* Weather section on homepage */
.weather-bar { background:rgba(15,40,25,.85); backdrop-filter:blur(10px); border-bottom:1px solid rgba(255,255,255,.08); padding:12px 0; }

@media (max-width:700px) {
  .wf-main { grid-template-columns:1fr; }
  .wf-main-right { flex-direction:row; flex-wrap:wrap; border-top:1px solid rgba(255,255,255,.1); padding-top:16px; }
  .wf-stat { flex:1; min-width:120px; }
  .wf-forecast { grid-template-columns:repeat(3,1fr); }
  .wf-day:nth-child(4),.wf-day:nth-child(5) { display:none; }
}
