/* =========================================================
   IMOBI — Public Properties CSS
   Listagem + Detalhe públicos
   Caminho: /imobi/app/css/properties-public.css
   ========================================================= */

/* ========== RESET / BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0a0a0f;
  --surface:      #13131a;
  --surface-2:    #1a1a24;
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240,240,245,0.7);
  --text-muted:   rgba(240,240,245,0.4);
  --accent:       #7c5cfc;
  --accent-hover: #6b4ef0;
  --green:        #25d366;
  --radius:       12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ========== PUBLIC HEADER ========== */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.pub-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pub-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.pub-logo__icon {
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

.pub-header__spacer { flex: 1; }

.pub-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  line-height: 1;
  white-space: nowrap;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--whatsapp {
  background: var(--green);
  color: #fff;
  border: 1px solid transparent;
  font-size: 0.875rem;
}
.btn--whatsapp:hover { background: #1db954; }

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
}
.btn--outline:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  color: var(--text-primary);
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.45rem 0.875rem;
  font-size: 0.8rem;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ========== HERO SEARCH ========== */
.pub-hero {
  background: linear-gradient(135deg, #0d0d18 0%, #13102a 100%);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pub-hero__title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pub-hero__sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.pub-search-bar {
  display: flex;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.pub-search-bar:focus-within {
  border-color: var(--accent);
}

.pub-search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0.875rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.pub-search-bar input::placeholder { color: var(--text-muted); }

.pub-search-bar button {
  padding: 0.875rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s;
}
.pub-search-bar button:hover { background: var(--accent-hover); }

/* ========== FILTERS BAR ========== */
.filters-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.5rem;
}

.filters-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.filter-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  transition: border-color 0.2s, color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-select option { background: var(--surface-2); }

.filter-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  width: 130px;
  transition: border-color 0.2s, color 0.2s;
}
.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  color: var(--text-primary);
}
.filter-input::placeholder { color: var(--text-muted); }

.filters-bar__spacer { flex: 1; }

.btn-clear-filters {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.btn-clear-filters:hover {
  color: var(--text-secondary);
  background: var(--surface-2);
}

/* ========== RESULTS BAR ========== */
.results-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.results-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.results-count strong { color: var(--text-primary); }

.view-btns {
  display: flex;
  gap: 0.25rem;
}

.view-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.view-btn:hover { background: var(--surface); color: var(--text-secondary); }
.view-btn--active { background: var(--surface); color: var(--accent); }

/* ========== MAIN CONTENT AREA ========== */
.pub-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* ========== PROPERTY GRID ========== */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ========== PROPERTY CARD ========== */
.prop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.prop-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.prop-card__image {
  position: relative;
  height: 200px;
  background: var(--surface-2);
  overflow: hidden;
  flex-shrink: 0;
}

.prop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.prop-card:hover .prop-card__image img {
  transform: scale(1.04);
}

.prop-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.prop-card__no-image i { font-size: 2rem; opacity: 0.3; }

.prop-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.4rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge--purpose {
  background: var(--accent);
  color: #fff;
}

.badge--purpose-locacao {
  background: #059669;
  color: #fff;
}

.badge--featured {
  background: #f59e0b;
  color: #000;
}

.prop-card__body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.prop-card__price {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.prop-card__price small {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.prop-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.prop-card__location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.prop-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.prop-card__feat {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--surface-2);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.prop-card__feat i { font-size: 0.85rem; color: var(--text-muted); }

.prop-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.prop-card__actions .btn {
  flex: 1;
  justify-content: center;
}

/* ========== PROPERTY LIST ROW ========== */
.prop-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prop-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  transition: border-color 0.2s;
}
.prop-row:hover { border-color: var(--border-hover); }

.prop-row__image {
  width: 100px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}
.prop-row__image img { width: 100%; height: 100%; object-fit: cover; }
.prop-row__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.prop-row__no-image i { font-size: 1.5rem; opacity: 0.3; }

.prop-row__info { flex: 1; min-width: 0; }
.prop-row__title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prop-row__location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.prop-row__features {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}
.prop-row__feat {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.prop-row__feat i { color: var(--text-muted); }

.prop-row__price {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-align: right;
  flex-shrink: 0;
}
.prop-row__price small {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.prop-row__actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* ========== PAGINATION ========== */
.pub-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0 0;
}

.page-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

/* ========== STATES ========== */
.pub-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 1rem;
  color: var(--text-muted);
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pub-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}
.pub-empty i { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; display: block; }
.pub-empty h3 { color: var(--text-secondary); margin-bottom: 0.5rem; }

/* ========== FOOTER ========== */
.pub-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   DETALHE DO IMÓVEL
   ========================================================= */

/* Breadcrumb */
.pub-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pub-breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.pub-breadcrumb a:hover { color: var(--text-primary); }
.pub-breadcrumb i { font-size: 0.75rem; }
.pub-breadcrumb span { color: var(--text-secondary); }

/* Gallery */
.detail-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 7;
  margin-bottom: 0.5rem;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main__empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
}
.gallery-main__empty i { font-size: 3rem; opacity: 0.3; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
}

.gallery-nav button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.gallery-nav button:hover { background: rgba(0,0,0,0.8); }

.gallery-counter {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb--active { border-color: var(--accent); }

/* Detail Layout */
.detail-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

/* Left column */
.detail-main {}

.detail-header {
  margin-bottom: 1.5rem;
}

.detail-badges {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.detail-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Price block */
.detail-price-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.detail-price-main {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.detail-price-suffix {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}

.detail-price-extras {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.detail-price-extra {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.detail-price-extra strong { color: var(--text-secondary); }

/* Features */
.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.detail-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.detail-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.detail-feature i {
  font-size: 1.35rem;
  color: var(--accent);
}

.detail-feature__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-feature__label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Description */
.detail-description {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.75;
  white-space: pre-line;
}

/* Amenities */
.detail-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amenity-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.amenity-tag i { color: var(--accent); font-size: 0.9rem; }

/* Address */
.detail-address {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Right column — Agent Card */
.detail-aside {}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.agent-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.agent-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  flex-shrink: 0;
}

.agent-avatar img { width: 100%; height: 100%; object-fit: cover; }

.agent-info {}
.agent-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}
.agent-type {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.agent-creci {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.agent-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.agent-card__divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.agent-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}
.agent-phone i { color: var(--text-muted); }

/* Share block */
.share-block {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.share-block__label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.share-block__btns {
  display: flex;
  gap: .5rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  color: #fff;
}
.share-btn:hover { opacity: .85; transform: scale(1.08); }
.share-btn--wa   { background: #25d366; }
.share-btn--fb   { background: #1877f2; }
.share-btn--ig   { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.share-btn--copy { background: var(--surface); color: var(--text-primary); border: 1px solid var(--border); }

/* Loading overlay for detail */
.detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1rem;
  color: var(--text-muted);
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 0.9rem;
  color: var(--text-primary);
  transform: translateY(6rem);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
  pointer-events: none;
}
.toast--visible { transform: translateY(0); opacity: 1; }
.toast--success .toast__icon i { color: #4ade80; }
.toast--error   .toast__icon i { color: #f87171; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .agent-card { position: static; }
}

@media (max-width: 600px) {
  .pub-hero { padding: 2.5rem 1rem 2rem; }
  .pub-main { padding: 0 1rem 2rem; }
  .filters-bar { padding: 0.75rem 1rem; }
  .results-bar { padding: 0.75rem 1rem; }
  .detail-layout { padding: 0 1rem 2rem; }
  .detail-gallery { padding: 0 1rem 1rem; }
  .pub-breadcrumb { padding: 1rem 1rem 0.5rem; }
  .prop-grid { grid-template-columns: 1fr; }
  .detail-features { grid-template-columns: repeat(2, 1fr); }
  .gallery-main { aspect-ratio: 4 / 3; }
}

/* ========== BOOKING WIDGET ========== */
.booking-calendar {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.booking-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.booking-cal__header button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}

.booking-cal__header button:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.booking-cal__header span {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: capitalize;
}

.booking-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.booking-cal__dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.cal-day:hover:not(.cal-day--disabled):not(.cal-day--empty) {
  background: rgba(124,92,252,0.15);
  color: var(--text-primary);
}

.cal-day--today {
  color: var(--accent);
  font-weight: 700;
}

.cal-day--selected {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700;
}

.cal-day--disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.4;
}

.cal-day--empty {
  cursor: default;
}

/* Slots */
.booking-slots__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.booking-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.slot-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.slot-btn:hover {
  background: rgba(124,92,252,0.15);
  border-color: var(--accent);
}

.slot-btn--selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.booking-slots__loading,
.booking-slots__empty {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form */
.booking-form { margin-top: 0.5rem; }

.booking-selected {
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(124,92,252,0.3);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.booking-form .form-group {
  margin-bottom: 0.875rem;
}

.booking-form .form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.booking-form .form-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.15s;
  resize: vertical;
}

.booking-form .form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.booking-form .form-input::placeholder { color: var(--text-muted); }

/* Spinner small */
.spinner--sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
}
