/* ==========================================================================
   Components Styles - CañeteHogares (Fotocasa Inspired)
   ========================================================================== */

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .site-header.scrolled {
  background: rgba(19, 27, 46, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.brand-logo .brand-highlight {
  color: var(--text-main);
  font-weight: 600;
}

.brand-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-item {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: var(--primary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--border-subtle);
  color: var(--text-main);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary-light);
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: all var(--transition-fast);
}

.btn-icon-only:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-coral);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(255, 82, 82, 0.4);
}

/* ==========================================================================
   Hero Section - Fotocasa Style
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 6rem 0 5rem;
  background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Oscurecer para leer texto blanco */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  animation: fadeIn 0.5s ease-out;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: #ffffff;
  line-height: 1.15;
}

.hero-title .gradient-text {
  color: #ffffff;
  /* Fotocasa usa colores sólidos en sus textos principales sobre foto */
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #f0f0f0;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Fotocasa Search Box Card */
.search-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: none;
  padding: 1.5rem;
  position: relative;
  z-index: 3;
}

.search-tabs {
  display: flex;
  gap: 1rem;
  padding: 0 0 1rem 0;
  border-bottom: 2px solid var(--border-subtle);
  overflow-x: auto;
  margin-bottom: 0.5rem;
}

.search-tab-btn {
  padding: 0.25rem 0.5rem 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 0;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.search-tab-btn.active {
  color: var(--text-main);
  background: transparent;
}

.search-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.search-tab-btn:hover:not(.active) {
  color: var(--text-main);
  background: transparent;
}

.search-inputs-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 1rem;
  padding: 1rem 0.5rem 0.25rem;
  align-items: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.55rem 1rem;
  text-align: left;
  transition: all var(--transition-fast);
  position: relative;
}

.input-group:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-surface);
}

.input-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.input-field {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.input-select {
  cursor: pointer;
  appearance: none;
  background: transparent;
  padding-right: 1.5rem;
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 55%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.btn-search-main {
  height: 54px;
  padding: 0 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Quick Filter Pills / Chips
   ========================================================================== */

.filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-pills-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.filter-pill.active svg {
  stroke: #ffffff;
}

.pill-count {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ==========================================================================
   Results Controls & View Switcher
   ========================================================================== */

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.results-count-wrap h2 {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.35;
  gap: 0.5rem;
}

.results-count-wrap p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}

.sort-select {
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.view-toggle {
  display: inline-flex;
  background: var(--bg-surface-subtle);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.view-toggle-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Property Grid & Cards
   ========================================================================== */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.property-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(234, 11, 63, 0.25);
}

/* Media / Carousel inside Card */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-img {
  transform: scale(1.04);
}

.card-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.badge-tag.badge-featured {
  background: rgba(0, 102, 255, 0.9);
  color: #ffffff;
}

.badge-tag.badge-student {
  background: rgba(255, 122, 0, 0.9);
  color: #ffffff;
}

.badge-tag.badge-verified {
  background: rgba(0, 201, 167, 0.95);
  color: #ffffff;
}

.badge-tag.badge-services {
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
}

.btn-favorite-card {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-favorite-card:hover {
  transform: scale(1.12);
  background: #ffffff;
  color: var(--accent-coral);
}

.btn-favorite-card.active {
  color: var(--accent-coral);
  background: #ffffff;
}

.btn-favorite-card.active svg {
  fill: var(--accent-coral);
}

.card-photo-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

/* Card Content */
.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.card-price .currency {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-right: 2px;
}

.card-price .period {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.card-category-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.card-specs {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.card-spec-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.card-spec-item svg {
  color: var(--primary);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.tag-service {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: auto;
}

/* ==========================================================================
   Map View (Mockup & Interactive Pins)
   ========================================================================== */

.map-view-container {
  display: none;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-top: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.map-view-container.active {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  min-height: 600px;
}

.map-side-list {
  max-height: 700px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-interactive-canvas {
  position: relative;
  background: #e5edf5;
  background-image: 
    radial-gradient(#cbd5e1 1.5px, transparent 1.5px), 
    linear-gradient(to right, rgba(0, 102, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px, 60px 60px, 60px 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .map-interactive-canvas {
  background: #0f172a;
  background-image: 
    radial-gradient(#334155 1.5px, transparent 1.5px), 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.map-header-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg-surface);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.map-pin {
  position: absolute;
  background: var(--primary);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.map-pin:hover, .map-pin.active {
  background: #0046b3;
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 20;
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.6);
}

.map-pin::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 5px 0 5px;
  border-style: solid;
  border-color: var(--primary) transparent transparent transparent;
}

/* ==========================================================================
   Zones / Neighborhoods in Cañete Showcase
   ========================================================================== */

.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.zone-card {
  position: relative;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.zone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.zone-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.zone-card:hover .zone-card-img {
  transform: scale(1.08);
}

.zone-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.zone-card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.zone-card-stats {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ==========================================================================
   Modals (Property Details & Publish Form)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: all var(--transition-normal);
}

.modal-backdrop.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-coral);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Gallery in Detail Modal */
.modal-gallery-main {
  width: 100%;
  height: 380px;
  background: #0f172a;
  position: relative;
}

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

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-surface-subtle);
  overflow-x: auto;
}

.gallery-thumb {
  width: 80px;
  height: 55px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.gallery-thumb.active, .gallery-thumb:hover {
  opacity: 1;
  border-color: var(--primary);
}

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

.modal-content-body {
  padding: 1.75rem;
}

.modal-grid-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 2rem;
}

/* Cost Calculator Box */
.calc-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.calc-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
}

.calc-total {
  border-top: 2px dashed var(--border-medium);
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
}

.toast.toast-success {
  border-left-color: var(--secondary);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 201, 167, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 201, 167, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 201, 167, 0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
