﻿/* =============================================================
   MARKETPLACE STYLES
   Bazaar, Contracts/Bounty Board, Player Shop Setup,
   World Map Modal overlay.
   Source: original styles.css lines 8532-10731
   ============================================================= */
/* ============================== */
/* BAZAAR MARKETPLACE STYLES */
/* ============================== */

/* Bazaar Wrapper - Full screen marketplace */
.bazaar-wrapper {
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0515 0%, #1a0f2e 100%);
  display: flex;
  flex-direction: column;
}

/* Hero Banner */
.bazaar-hero {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.bazaar-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 5, 21, 0.3) 0%,
    rgba(10, 5, 21, 0.7) 70%,
    rgba(10, 5, 21, 1) 100%
  );
}

.bazaar-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.bazaar-title {
  font-size: 2.8em;
  color: #ffd700;
  margin: 0;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    0 0 40px rgba(255, 215, 0, 0.4),
    2px 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 3px;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.8); }
  50% { text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.8); }
}

.bazaar-subtitle {
  font-size: 1.2em;
  color: #d4af37;
  margin: 10px 0 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  font-style: italic;
}

/* Navigation Bar */
.bazaar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  background: linear-gradient(90deg, rgba(30, 15, 50, 0.95), rgba(45, 27, 78, 0.95));
  border-bottom: 2px solid #d4af37;
  flex-wrap: wrap;
  gap: 15px;
}

.bazaar-nav-left,
.bazaar-nav-right {
  flex-shrink: 0;
}

.bazaar-nav-center {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

.bazaar-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #663399;
  border-radius: 8px;
  color: #f4e4c1;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s;
}

.bazaar-back-btn:hover {
  background: rgba(102, 51, 153, 0.4);
  border-color: #8a67ff;
  transform: translateX(-3px);
}

.back-arrow {
  font-size: 1.2em;
  transition: transform 0.3s;
}

.bazaar-back-btn:hover .back-arrow {
  transform: translateX(-5px);
}

.bazaar-search-container {
  position: relative;
  width: 100%;
}

.bazaar-search {
  width: 100%;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #4a3070;
  border-radius: 25px;
  color: #f4e4c1;
  font-size: 1em;
  transition: all 0.3s;
}

.bazaar-search:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.bazaar-search::placeholder {
  color: #8a7a9a;
}

.bazaar-setup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #d4af37 0%, #b8962f 100%);
  border: none;
  border-radius: 8px;
  color: #1a0f2e;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.bazaar-setup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.shop-icon {
  font-size: 1.2em;
}

/* Filter Tabs */
.bazaar-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: rgba(10, 5, 21, 0.8);
  flex-wrap: wrap;
}

.bazaar-filter-btn {
  padding: 10px 20px;
  background: rgba(50, 30, 80, 0.6);
  border: 1px solid #4a3070;
  border-radius: 20px;
  color: #c4b4d4;
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.3s;
}

.bazaar-filter-btn:hover {
  background: rgba(70, 40, 110, 0.8);
  border-color: #8a67ff;
  color: #f4e4c1;
}

.bazaar-filter-btn.active {
  background: linear-gradient(135deg, #663399 0%, #8a67ff 100%);
  border-color: #d4af37;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(138, 103, 255, 0.4);
}

/* Toolbar */
.bazaar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: rgba(20, 10, 35, 0.9);
  border-bottom: 1px solid #3a2060;
  flex-wrap: wrap;
  gap: 10px;
}

.bazaar-shop-count {
  color: #d4af37;
  font-size: 1.1em;
}

.bazaar-shop-count span {
  font-weight: bold;
  font-size: 1.3em;
}

.bazaar-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a89ab8;
}

.bazaar-sort select {
  padding: 8px 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #4a3070;
  border-radius: 6px;
  color: #f4e4c1;
  cursor: pointer;
}

/* Bazaar Floor - Main scrollable area */
.bazaar-floor {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
  background: 
    radial-gradient(ellipse at top, rgba(102, 51, 153, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 5, 21, 1) 0%, rgba(20, 10, 35, 1) 100%);
}

/* Stalls Grid */
.bazaar-stalls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Individual Stall */
.bazaar-stall {
  background: linear-gradient(180deg, rgba(40, 25, 70, 0.9) 0%, rgba(25, 15, 45, 0.95) 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #4a3070;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.bazaar-stall:hover {
  transform: translateY(-8px);
  border-color: #d4af37;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(212, 175, 55, 0.2);
}

/* Stall type colors */
.bazaar-stall.stall-type-weapons {
  --stall-accent: #ff6b6b;
  --stall-glow: rgba(255, 107, 107, 0.3);
}

.bazaar-stall.stall-type-armor {
  --stall-accent: #4ecdc4;
  --stall-glow: rgba(78, 205, 196, 0.3);
}

.bazaar-stall.stall-type-consumables {
  --stall-accent: #95e676;
  --stall-glow: rgba(149, 230, 118, 0.3);
}

.bazaar-stall.stall-type-materials {
  --stall-accent: #ffa94d;
  --stall-glow: rgba(255, 169, 77, 0.3);
}

.bazaar-stall.stall-type-general {
  --stall-accent: #d4af37;
  --stall-glow: rgba(212, 175, 55, 0.3);
}

.bazaar-stall:hover {
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 30px var(--stall-glow, rgba(212, 175, 55, 0.2));
}

/* Stall Header */
.stall-header {
  position: relative;
}

.stall-awning {
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--stall-accent, #d4af37) 0px,
    var(--stall-accent, #d4af37) 20px,
    rgba(0, 0, 0, 0.3) 20px,
    rgba(0, 0, 0, 0.3) 40px
  );
  border-bottom: 3px solid rgba(0, 0, 0, 0.4);
}

.stall-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.merchant-portrait {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #b8962f);
  border: 3px solid var(--stall-accent, #d4af37);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.merchant-info {
  flex: 1;
  min-width: 0;
}

.merchant-name {
  font-size: 1.15em;
  font-weight: bold;
  color: #ffd700;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stall-tagline {
  font-size: 0.85em;
  color: #a89ab8;
  margin: 4px 0 0;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stall-badge {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  font-size: 0.85em;
  color: var(--stall-accent, #d4af37);
  font-weight: bold;
  white-space: nowrap;
}

/* Wares Container */
.stall-wares {
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
}

.bazaar-stall.collapsible .stall-wares {
  max-height: 200px;
}

.bazaar-stall.collapsible.expanded .stall-wares {
  max-height: 500px;
}

/* Item Grid */
.stall-item-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stall-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s;
}

.stall-item:hover {
  background: rgba(102, 51, 153, 0.3);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(5px);
}

.item-icon {
  font-size: 1.5em;
  width: 35px;
  text-align: center;
  flex-shrink: 0;
}

.item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.item-name {
  font-weight: 600;
  color: #f4e4c1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-price {
  font-size: 0.9em;
  color: #ffd700;
  font-weight: bold;
}

.item-buy-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #d4af37 0%, #b8962f 100%);
  border: none;
  border-radius: 6px;
  color: #1a0f2e;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.25s;
  flex-shrink: 0;
}

.item-buy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* Category color accents */
.stall-item.item-category-weapons .item-icon { color: #ff6b6b; }
.stall-item.item-category-armor .item-icon { color: #4ecdc4; }
.stall-item.item-category-consumables .item-icon { color: #95e676; }
.stall-item.item-category-materials .item-icon { color: #ffa94d; }

/* Empty stall state */
.stall-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: #6a5a7a;
  gap: 10px;
}

.stall-empty .empty-icon {
  font-size: 2em;
  opacity: 0.6;
}

/* More items note */
.stall-more-items {
  text-align: center;
  padding: 10px;
  color: #8a7a9a;
  font-size: 0.85em;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
}

/* Edit stall button */
.stall-edit-btn {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: linear-gradient(135deg, #4a3070, #5a3a8a);
  border: 1px solid #8a67ff;
  border-radius: 8px;
  color: #d4af37;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.stall-edit-btn:hover {
  background: linear-gradient(135deg, #5a3a8a, #7a4aaa);
  box-shadow: 0 0 20px rgba(138, 103, 255, 0.4);
}

/* Empty bazaar state */
.bazaar-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  text-align: center;
  color: #a89ab8;
}

.bazaar-empty-state .empty-stall-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.7;
}

.bazaar-empty-state h3 {
  font-size: 1.5em;
  color: #d4af37;
  margin: 0 0 15px;
}

.bazaar-empty-state p {
  margin: 5px 0;
  font-size: 1.1em;
}

.bazaar-setup-btn-large {
  margin-top: 25px;
  padding: 15px 30px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #d4af37 0%, #b8962f 100%);
  border: none;
  border-radius: 10px;
  color: #1a0f2e;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.bazaar-setup-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}

.bazaar-clear-btn {
  margin-top: 20px;
  padding: 12px 25px;
  background: rgba(102, 51, 153, 0.4);
  border: 1px solid #8a67ff;
  border-radius: 8px;
  color: #f4e4c1;
  cursor: pointer;
  transition: all 0.3s;
}

.bazaar-clear-btn:hover {
  background: rgba(102, 51, 153, 0.7);
}

/* Scrollbar styling for bazaar */
.bazaar-floor::-webkit-scrollbar,
.stall-wares::-webkit-scrollbar {
  width: 8px;
}

.bazaar-floor::-webkit-scrollbar-track,
.stall-wares::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.bazaar-floor::-webkit-scrollbar-thumb,
.stall-wares::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #663399, #4a3070);
  border-radius: 4px;
}

.bazaar-floor::-webkit-scrollbar-thumb:hover,
.stall-wares::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8a67ff, #663399);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bazaar-hero {
    height: 150px;
  }
  
  .bazaar-title {
    font-size: 1.8em;
  }
  
  .bazaar-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }
  
  .bazaar-nav-left,
  .bazaar-nav-center,
  .bazaar-nav-right {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  
  .bazaar-filters {
    padding: 15px 10px;
    gap: 8px;
  }
  
  .bazaar-filter-btn {
    padding: 8px 15px;
    font-size: 0.85em;
  }
  
  .bazaar-stalls {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }
  
  .bazaar-floor {
    padding: 15px;
  }
}

/* ============================== */
/* BOUNTY BOARD / CONTRACTS STYLES */
/* ============================== */

/* Contracts Board Wrapper - Full screen like bazaar */
.contracts-board-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0515 0%, #1a0f2e 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Hero Banner */
.board-hero {
  position: relative;
  height: 180px;
  background: url('environment/port_na_carraig_guild_1.png') center 40% / cover no-repeat;
  overflow: hidden;
}

.board-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 5, 21, 0.4) 0%,
    rgba(10, 5, 21, 0.75) 70%,
    rgba(10, 5, 21, 1) 100%
  );
}

.board-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.board-title {
  font-size: 2.6em;
  color: #ffd700;
  margin: 0;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    0 0 40px rgba(255, 215, 0, 0.4),
    2px 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
  animation: titleGlow 3s ease-in-out infinite;
}

.board-subtitle {
  font-size: 1.1em;
  color: #d4af37;
  margin: 8px 0 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  font-style: italic;
}

/* Navigation Bar */
.board-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 25px;
  background: linear-gradient(90deg, rgba(30, 15, 50, 0.95), rgba(45, 27, 78, 0.95));
  border-bottom: 2px solid #8b4513;
  flex-wrap: wrap;
  gap: 15px;
}

.board-nav-left,
.board-nav-right {
  flex-shrink: 0;
}

.board-nav-center {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

.board-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #663399;
  border-radius: 8px;
  color: #f4e4c1;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s;
}

.board-back-btn:hover {
  background: rgba(102, 51, 153, 0.4);
  border-color: #8a67ff;
  transform: translateX(-3px);
}

.board-search-container {
  position: relative;
  width: 100%;
}

.board-search {
  width: 100%;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #5a4020;
  border-radius: 25px;
  color: #f4e4c1;
  font-size: 1em;
  transition: all 0.3s;
}

.board-search:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.board-search::placeholder {
  color: #8a7a6a;
}

.board-post-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
  border: 2px solid #d4af37;
  border-radius: 8px;
  color: #ffd700;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
}

.board-post-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
}

.post-icon {
  font-size: 1.2em;
}

/* Tabs for Open/My Contracts */
.board-tabs {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 15px 20px;
  background: rgba(20, 10, 35, 0.9);
  border-bottom: 1px solid #3a2060;
}

.board-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: rgba(50, 30, 80, 0.4);
  border: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  color: #a89ab8;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s;
}

.board-tab-btn:hover {
  background: rgba(70, 40, 110, 0.6);
  color: #f4e4c1;
}

.board-tab-btn.active {
  background: linear-gradient(180deg, rgba(139, 69, 19, 0.6), rgba(101, 67, 33, 0.4));
  border-color: #d4af37;
  border-bottom-color: transparent;
  color: #ffd700;
  font-weight: bold;
}

.tab-icon {
  font-size: 1.1em;
}

/* Filter Tabs */
.board-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: rgba(10, 5, 21, 0.8);
  flex-wrap: wrap;
}

.board-filter-btn {
  padding: 10px 20px;
  background: rgba(50, 30, 80, 0.6);
  border: 1px solid #4a3070;
  border-radius: 20px;
  color: #c4b4d4;
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.3s;
}

.board-filter-btn:hover {
  background: rgba(70, 40, 110, 0.8);
  border-color: #8a67ff;
  color: #f4e4c1;
}

.board-filter-btn.active {
  background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
  border-color: #d4af37;
  color: #ffd700;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(139, 69, 19, 0.5);
}

/* Toolbar */
.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25px;
  background: rgba(20, 10, 35, 0.9);
  border-bottom: 1px solid #3a2060;
  flex-wrap: wrap;
  gap: 10px;
}

.board-contract-count {
  color: #d4af37;
  font-size: 1.05em;
}

.board-contract-count span {
  font-weight: bold;
  font-size: 1.2em;
}

.board-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a89ab8;
}

.board-sort select {
  padding: 8px 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #5a4020;
  border-radius: 6px;
  color: #f4e4c1;
  cursor: pointer;
}

/* Main Board Floor - Scrollable area */
.board-floor {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
  background: 
    radial-gradient(ellipse at top, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 5, 21, 1) 0%, rgba(20, 10, 35, 1) 100%);
}

/* Postings Grid */
.board-postings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Individual Contract Posting */
.contract-posting {
  position: relative;
  background: linear-gradient(180deg, #3d2a1a 0%, #2a1d12 100%);
  border-radius: 4px;
  padding: 25px;
  border: 3px solid #654321;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

/* Paper texture effect */
.contract-posting::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.contract-posting:hover {
  transform: translateY(-8px) rotate(0.5deg);
  border-color: var(--contract-accent, #d4af37);
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.3),
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.2);
}

/* Corner pins/tacks */
.posting-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #ffd700, #8b4513);
  border-radius: 50%;
  box-shadow: 
    1px 2px 3px rgba(0, 0, 0, 0.5),
    inset -1px -1px 2px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.posting-corner-tl { top: 8px; left: 8px; }
.posting-corner-tr { top: 8px; right: 8px; }
.posting-corner-bl { bottom: 8px; left: 8px; }
.posting-corner-br { bottom: 8px; right: 8px; }

/* Tier colors */
.contract-posting.contract-tier-easy { --contract-accent: #95e676; }
.contract-posting.contract-tier-medium { --contract-accent: #ffa94d; }
.contract-posting.contract-tier-hard { --contract-accent: #ff6b6b; }
.contract-posting.contract-tier-legendary { 
  --contract-accent: #d4af37;
  border-color: #d4af37;
  animation: legendaryPulse 2s ease-in-out infinite;
}

@keyframes legendaryPulse {
  0%, 100% { box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.5); }
}

/* Posting Header */
.posting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.posting-type-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid;
  border-radius: 15px;
  font-size: 0.85em;
}

.type-icon {
  font-size: 1.1em;
}

.type-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f4e4c1;
}

.posting-tier-badge {
  font-weight: bold;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Posting Title */
.posting-title {
  font-size: 1.4em;
  color: #ffd700;
  margin: 0 0 12px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
  font-family: Georgia, serif;
}

/* Objective */
.posting-objective {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border-left: 3px solid var(--contract-accent, #d4af37);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.objective-icon {
  font-size: 1.2em;
  flex-shrink: 0;
}

.objective-text {
  color: #e8d4a0;
  font-size: 1em;
  line-height: 1.4;
}

/* Description */
.posting-description {
  color: #a89a80;
  font-size: 0.9em;
  font-style: italic;
  margin: 0 0 15px;
  padding-left: 10px;
  border-left: 2px solid #5a4a30;
  position: relative;
  z-index: 2;
}

/* Progress Bar (for my contracts) */
.contract-progress {
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.progress-objective {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.progress-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--contract-accent, #d4af37), #ffd700);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-text {
  color: #d4af37;
  font-weight: bold;
  font-size: 0.9em;
  min-width: 50px;
  text-align: right;
}

/* Reward Display */
.posting-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(139, 69, 19, 0.2));
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.reward-icon {
  font-size: 1.5em;
}

.reward-amount {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.reward-label {
  color: #d4af37;
  font-size: 1em;
  margin-left: -3px;
}

.contract-status-badge {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  color: #1a0f2e;
}

/* Meta info */
.posting-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8em;
  color: #8a7a6a;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

/* Actions */
.posting-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.posting-action-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s;
}

.posting-action-btn.accept-btn {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: #fff;
  border: 2px solid #4caf50;
}

.posting-action-btn.accept-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.posting-action-btn.turn-in-btn {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: #fff;
  border: 2px solid #42a5f5;
}

.posting-action-btn.turn-in-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(66, 165, 245, 0.4);
}

.posting-action-btn.cancel-btn {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  color: #fff;
  border: 2px solid #ef5350;
  flex: 0;
  min-width: auto;
}

.posting-action-btn.cancel-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(239, 83, 80, 0.4);
}

.contract-complete-badge {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(27, 94, 32, 0.2));
  border: 2px solid #4caf50;
  border-radius: 8px;
  color: #4caf50;
  font-weight: bold;
  font-size: 1.1em;
}

.no-character-notice {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  color: #8a7a6a;
  font-style: italic;
}

/* Empty State */
.board-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  text-align: center;
  color: #a89ab8;
}

.board-empty-state .empty-board-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.7;
}

.board-empty-state h3 {
  font-size: 1.5em;
  color: #d4af37;
  margin: 0 0 15px;
}

.board-empty-state p {
  margin: 5px 0;
  font-size: 1.1em;
}

.board-post-btn-large {
  margin-top: 25px;
  padding: 15px 30px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
  border: 2px solid #d4af37;
  border-radius: 10px;
  color: #ffd700;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.5);
}

.board-post-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* Post Contract Modal */
.post-contract-modal .modal-content {
  max-width: 700px;
  width: 95%;
}

.post-contract-content {
  padding: 0 !important;
}

.post-contract-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(90deg, #3d2a1a, #2a1d12);
  border-bottom: 2px solid #654321;
}

.post-contract-header h2 {
  color: #ffd700;
  margin: 0;
  font-size: 1.5em;
}

.modal-close-x {
  background: none;
  border: none;
  color: #a89a80;
  font-size: 2em;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.3s;
}

.modal-close-x:hover {
  color: #ff6b6b;
}

.post-contract-form {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-group label {
  color: #d4af37;
  font-weight: bold;
  font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #5a4020;
  border-radius: 8px;
  color: #f4e4c1;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d4af37;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.form-hint {
  font-size: 0.8em;
  color: #8a7a6a;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #3a2a1a;
}

.form-actions button {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s;
}

.form-actions .cancel-btn {
  background: rgba(100, 80, 60, 0.4);
  border: 1px solid #654321;
  color: #a89a80;
}

.form-actions .cancel-btn:hover {
  background: rgba(100, 80, 60, 0.6);
  color: #f4e4c1;
}

.form-actions .submit-btn {
  background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
  border: 2px solid #d4af37;
  color: #ffd700;
}

.form-actions .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* Scrollbar styling for board */
.board-floor::-webkit-scrollbar {
  width: 8px;
}

.board-floor::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.board-floor::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b4513, #654321);
  border-radius: 4px;
}

.board-floor::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a0522d, #8b4513);
}

/* Responsive adjustments for contracts board */
@media (max-width: 768px) {
  .board-hero {
    height: 140px;
  }
  
  .board-title {
    font-size: 1.7em;
  }
  
  .board-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  
  .board-nav-left,
  .board-nav-center,
  .board-nav-right {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  
  .board-tabs {
    padding: 10px;
    gap: 5px;
  }
  
  .board-tab-btn {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  
  .board-filters {
    padding: 12px 10px;
    gap: 8px;
  }
  
  .board-filter-btn {
    padding: 8px 15px;
    font-size: 0.85em;
  }
  
  .board-postings {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .board-floor {
    padding: 15px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 18px;
  }
}

/* Legacy Marketplace Styles (kept for backward compatibility) */
.marketplace-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #f4e4c1;
}

.marketplace-container h2 {
  color: #d4af37;
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5em;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.marketplace-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.player-shops-grid {
  margin-top: 30px;
}

.player-shop-card {
  background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 100%);
  border: 2px solid #8a67ff;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
}

.player-shop-card:hover {
  border-color: #d4af37;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Improved marketplace grid and card layout */
.player-shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.player-shop-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-owner {
  font-weight: 700;
  color: #ffd86b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-owner .owner-portrait {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(180deg,#fff,#eee);
  display: inline-block;
  flex-shrink: 0;
}

.shop-items {
  max-height: 220px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 6px;
}

.player-shop-card.expanded .shop-items {
  max-height: 600px;
}

.shop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}

.shop-item:hover {
  background: rgba(212,175,55,0.06);
  transform: translateY(-2px);
}

.shop-item-name { font-weight: 600; color: #fff; }
.shop-item-price { color: #ffd86b; margin-right: 12px; }

.shop-item-buy-btn {
  background: linear-gradient(180deg,#ffd86b,#d4af37);
  border: none;
  color: #2b1b00;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.shop-item-buy-btn:hover { filter: brightness(0.95); }

.empty-shop { text-align: center; color: #bbaea0; padding: 20px; }

/* Marketplace header image / hero */
.marketplace-hero {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(212,175,55,0.08), rgba(138,103,255,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #f6ecd2;
  font-size: 1.2em;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #663399;
}

.shop-owner {
  color: #d4af37;
  font-size: 1.3em;
  font-weight: bold;
}

.shop-status {
  color: #98d8c8;
  font-size: 0.9em;
}

.shop-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #663399;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.shop-item:hover {
  background: rgba(80, 50, 120, 0.4);
  border-color: #8a67ff;
}

.shop-item-name {
  color: #f4e4c1;
  font-weight: bold;
  flex: 1;
}

.shop-item-price {
  color: #daa520;
  font-weight: bold;
  margin: 0 15px;
}

.shop-item-buy-btn {
  background: linear-gradient(135deg, #3d2463, #5a3a8a);
  color: #d4af37;
  border: 1px solid #d4af37;
  padding: 6px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.shop-item-buy-btn:hover {
  background: linear-gradient(135deg, #5a3a8a, #7a4aaa);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.empty-shop {
  text-align: center;
  color: #999;
  padding: 30px;
  font-style: italic;
}

/* Player Shop Setup Modal */
.shop-setup-modal .modal-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.shop-inventory-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #663399;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-inventory-item-info {
  flex: 1;
}

.shop-inventory-item-name {
  color: #f4e4c1;
  font-weight: bold;
  margin-bottom: 5px;
}

.shop-inventory-item-stats {
  color: #999;
  font-size: 0.9em;
}

.shop-inventory-item-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.shop-price-input {
  width: 100px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #8a67ff;
  border-radius: 4px;
  color: #f4e4c1;
  font-family: inherit;
  text-align: right;
}

.shop-add-item-btn {
  background: linear-gradient(135deg, #3d2463, #5a3a8a);
  color: #d4af37;
  border: 1px solid #d4af37;
  padding: 6px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.shop-add-item-btn:hover {
  background: linear-gradient(135deg, #5a3a8a, #7a4aaa);
  transform: scale(1.05);
}

/* ==================== */
/* World Map Modal */
/* ==================== */

.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(5px);
  z-index: 10000 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.world-map-modal-content {
  background: linear-gradient(135deg, rgba(10, 5, 30, 0.98), rgba(30, 15, 50, 0.98));
  border: 3px solid #d4af37;
  border-radius: 15px;
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 2px solid #663399;
}

.modal-header h2 {
  color: #d4af37;
  margin: 0;
  font-size: 1.8em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
  background: rgba(180, 20, 20, 0.8);
  color: #fff;
  border: 2px solid #ff4444;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.modal-close-btn:hover {
  background: rgba(220, 40, 40, 1);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
}

.world-map-modal-body {
  padding: 20px;
  overflow: hidden;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.world-map-image-container {
  position: relative !important;
  display: inline-block !important; /* Shrink to fit the image */
  max-width: 95%;
  max-height: 85vh;
  margin: 0 auto;
}

.world-map-image {
  max-width: 100%;
  max-height: 80vh;
  width: 100%;
  height: auto;
  display: block !important;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  pointer-events: none; /* Let clicks pass through to hotspots */
}

.world-map-hotspots {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none; /* Container doesn't capture clicks */
  z-index: 10; /* Above the map image */
}

.map-location-hotspot {
  pointer-events: auto; /* But hotspots do */
  position: absolute !important; /* Make sure hotspots are absolutely positioned */
  z-index: 15; /* Above hotspots container */
}

.world-location-card {
  background: rgba(20, 10, 40, 0.8);
  border: 2px solid #663399;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.world-location-card:hover {
  background: rgba(40, 20, 60, 0.9);
  border-color: #8a67ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(138, 103, 255, 0.4);
}

.world-location-card.current {
  border-color: #d4af37;
  background: rgba(60, 50, 20, 0.8);
}

.world-location-card.current:hover {
  background: rgba(80, 70, 30, 0.9);
  border-color: #f4c430;
}

.world-location-card h3 {
  color: #d4af37;
  margin: 0;
  font-size: 1.2em;
  text-align: center;
}

.world-location-card.current h3 {
  color: #f4c430;
}

.world-location-card p {
  color: #e8d4a0;
  margin: 0;
  font-size: 0.9em;
  text-align: center;
  font-style: italic;
  line-height: 1.3;
}

/* World Map Viewer Screen */
.world-map-viewer-container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  padding: 20px;
}

.world-map-viewer-container h2 {
  color: #d4af37;
  font-size: 2em;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Close button positioned as overlay on top-left of map */
.world-map-viewer-container > button.primary-button {
  position: absolute !important;
  top: 80px !important;
  left: 30px !important;
  z-index: 100 !important;
  background: rgba(138, 67, 255, 0.95);
  border: 2px solid #d4af37;
  padding: 10px 20px;
  font-size: 1.1em;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  transition: all 0.3s;
}

.world-map-viewer-container > button.primary-button:hover {
  background: rgba(158, 87, 255, 1);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(138, 67, 255, 0.6);
}

/* Local Map Viewer Screen */
.local-map-viewer-container {
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.local-map-viewer-container h2 {
  color: #d4af37;
  font-size: 2em;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.local-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  width: 100%;
  margin-bottom: 20px;
}

.local-map-area {
  background: rgba(20, 10, 40, 0.9);
  border: 2px solid #663399;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.local-map-area:hover {
  background: rgba(40, 20, 60, 0.95);
  border-color: #8a67ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(138, 103, 255, 0.4);
}

.local-map-area h3 {
  color: #d4af37;
  margin: 0 0 10px 0;
  font-size: 1.3em;
}

.local-map-area p {
  color: #e8d4a0;
  margin: 0;
  font-size: 1em;
  line-height: 1.4;
}

.world-location-current-badge {
  background: linear-gradient(135deg, #d4af37, #f4c430);
  color: #1a0f2e;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: bold;
  text-align: center;
}

.map-location-hotspot {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.1));
  border: 3px solid rgba(212, 175, 55, 0.6);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-location 2s ease-in-out infinite;
}

.map-location-hotspot:hover {
  transform: scale(1.2);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.7), rgba(212, 175, 55, 0.3));
  border-color: rgba(212, 175, 55, 1);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
  z-index: 10;
}

.map-location-hotspot.current {
  background: radial-gradient(circle, rgba(244, 196, 48, 0.6), rgba(244, 196, 48, 0.2));
  border-color: #f4c430;
  animation: pulse-current 1.5s ease-in-out infinite;
}

.map-location-hotspot.current:hover {
  background: radial-gradient(circle, rgba(244, 196, 48, 0.8), rgba(244, 196, 48, 0.4));
}

.map-location-hotspot.undiscovered {
  background: radial-gradient(circle, rgba(100, 100, 100, 0.3), rgba(100, 100, 100, 0.1));
  border-color: rgba(100, 100, 100, 0.5);
  cursor: not-allowed;
  animation: none;
}

.map-location-hotspot.undiscovered:hover {
  background: radial-gradient(circle, rgba(120, 100, 100, 0.4), rgba(120, 100, 100, 0.2));
  border-color: rgba(150, 100, 100, 0.7);
  transform: scale(1.1);
}

@keyframes pulse-location {
  0%, 100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 45px rgba(212, 175, 55, 0.4);
  }
}

@keyframes pulse-current {
  0%, 100% {
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.8);
  }
  50% {
    box-shadow: 0 0 40px rgba(244, 196, 48, 1), 0 0 60px rgba(244, 196, 48, 0.6);
  }
}

.map-location-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(10, 5, 20, 0.95);
  color: #d4af37;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid #d4af37;
  white-space: nowrap;
  font-size: 0.9em;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.map-location-hotspot:hover .map-location-tooltip {
  opacity: 1;
}

.map-location-tooltip.locked {
  color: #999;
  border-color: #666;
}

.shop-remove-item-btn {
  background: rgba(180, 20, 20, 0.7);
  color: #fff;
  border: 1px solid #ff3333;
  padding: 6px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.shop-remove-item-btn:hover {
  background: rgba(220, 30, 30, 1);
  transform: scale(1.05);
}

