:root {
  --cs-blue: #0D2B45;
  --cs-sky: #1E4E6E;
  --cs-green: #1E4E6E;
  --cs-yellow: #D4A259;
  --cs-coral: #D4A259;
  --cs-sand: #F2E9DB;
  --cs-light: #FAF7F2;
  --cs-dark: #0D2B45;
}

body {
  color: var(--cs-dark);
  background: var(--cs-light);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cs-navbar {
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(10px);
}

.cs-page-offset {
  padding-top: 76px;
}

.cs-logo {
  height: 44px;
  width: auto;
}

.cs-hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FAF7F2 0%, #F2E9DB 48%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.cs-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: rgba(212, 162, 89, .18);
}

.cs-panel {
  background: #fff;
  border: 1px solid rgba(13, 43, 69, .1);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(13, 43, 69, .08);
}

.btn-primary {
  background: var(--cs-blue);
  border-color: var(--cs-blue);
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary:hover {
  background: #071D2F;
  border-color: #071D2F;
}

.cs-price {
  color: var(--cs-blue);
  font-weight: 800;
}

.btn-outline-primary {
  color: var(--cs-blue);
  border-color: var(--cs-blue);
  border-radius: 999px;
  font-weight: 700;
}

.btn-outline-primary:hover {
  background: var(--cs-blue);
  border-color: var(--cs-blue);
}

.badge-soft {
  background: rgba(13, 43, 69, .08);
  color: var(--cs-blue);
  border: 1px solid rgba(13, 43, 69, .12);
}

.section-title {
  font-weight: 800;
}

.feature-card {
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(13, 43, 69, .08);
  height: 100%;
}

.map-preview {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(13, 43, 69, .16);
  overflow: hidden;
  border: 1px solid rgba(13, 43, 69, .08);
}

.fake-map {
  min-height: 440px;
  background: radial-gradient(circle at 20% 20%, rgba(212, 162, 89, .28), transparent 28%), radial-gradient(circle at 75% 30%, rgba(30, 78, 110, .18), transparent 24%), linear-gradient(135deg, #F2E9DB, #FAF7F2);
  position: relative;
}

.pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--cs-coral);
  box-shadow: 0 8px 20px rgba(212, 162, 89, .28);
}

.pin::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  top: 7px;
  left: 7px;
}

.note-box {
  border-left: 5px solid var(--cs-yellow);
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
}

.price-card {
  border: 2px solid rgba(13, 43, 69, .08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(13, 43, 69, .08);
}

.cs-map-shell {
  height: calc(100vh - 58px);
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  background: #fff;
}

#costieraMap {
  width: 100%;
  height: 100%;
}

.cs-map-sidebar {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: .75rem;
  min-height: 0;
  padding: .75rem;
  border-right: 1px solid rgba(13, 43, 69, .12);
  background: var(--cs-light);
  overflow: hidden;
}

.cs-map-sidebar-section {
  min-height: 0;
  overflow: auto;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(13, 43, 69, .12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(13, 43, 69, .08);
  padding: .75rem;
}

.cs-map-canvas {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
}

.cs-map-categorybar {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  position: relative;
  z-index: 10;
  left: auto;
  top: auto;
  width: 68px;
  margin: .85rem;
  padding: .45rem;
  border: 1px solid rgba(13, 43, 69, .12);
  border-radius: 8px;
  background: rgba(250, 247, 242, .94);
  box-shadow: 0 10px 28px rgba(13, 43, 69, .12);
  overflow: hidden;
}

.cs-map-categorybar .d-flex {
  flex-direction: column;
  max-height: 198px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cs-map-categorybar .d-flex::-webkit-scrollbar {
  display: none;
}

.cs-map-category-nav {
  width: 100%;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 43, 69, .14);
  border-radius: 8px;
  background: #fff;
  color: var(--cs-blue);
  font-weight: 800;
  line-height: 1;
}

.cs-map-category-nav:first-child {
  margin-bottom: .35rem;
}

.cs-map-category-nav:last-child {
  margin-top: .35rem;
}

.cs-map-category-btn {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 43, 69, .16);
  border-radius: 8px;
  background: #fff;
  color: var(--cs-blue);
  font-size: .72rem;
  font-weight: 800;
}

.cs-map-category-btn.is-active {
  border-color: var(--cs-blue);
  background: var(--cs-blue);
  color: #fff;
}

.cs-map-category-btn.is-active img {
  filter: drop-shadow(0 1px 2px rgba(255,255,255,.35));
}

.cs-map-category-count {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 .25rem;
  border-radius: 999px;
  background: #D4A259;
  color: #0D2B45;
  font-size: .66rem;
  line-height: 18px;
}

.cs-map-locate-btn {
  position: absolute;
  z-index: 10;
  top: calc(.85rem + 282px);
  right: .85rem;
  box-shadow: 0 10px 28px rgba(13, 43, 69, .18);
}

.cs-user-location {
  min-width: 140px;
}

.cs-map-list-panel {
  overflow: auto;
}

.cs-map-list-panel.is-open {
  opacity: 1;
}

.cs-map-promo-panel {
  overflow: auto;
}

.cs-map-promo-item {
  border-top: 1px solid rgba(13, 43, 69, .08);
  padding: .65rem 0;
}

.cs-map-promo-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.cs-map-promo-item img {
  width: 100%;
  max-height: 110px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: .45rem;
}

.cs-map-promo-sponsored {
  margin: .35rem 0;
  padding: .75rem;
  border: 1px solid rgba(212, 162, 89, .35);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 251, 235, .95), rgba(255, 255, 255, .98));
}

.cs-map-promo-sponsored img {
  max-height: 150px;
}

.cs-sponsored-label {
  display: inline-flex;
  margin-bottom: .45rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: #D4A259;
  color: #0D2B45;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cs-map-poi-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(13, 43, 69, .08);
  background: transparent;
  padding: .55rem 0;
}

.cs-map-poi-item:last-child {
  border-bottom: 0;
}

.cs-map-event-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(13, 43, 69, .08);
  background: transparent;
  padding: .55rem 0;
}

.cs-map-event-item:last-child {
  border-bottom: 0;
}

.cs-event-info {
  width: min(320px, 82vw);
}

.cs-event-info h2 {
  margin: .25rem 0 .35rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.cs-event-info p {
  font-size: .88rem;
  line-height: 1.45;
}

.cs-event-badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: #F2E9DB;
  color: #0D2B45;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cs-event-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
}

.cs-event-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(13, 43, 69, .12);
}

.cs-poi-info {
  width: min(360px, 82vw);
  color: var(--cs-dark);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cs-poi-info-header {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(13, 43, 69, .08);
}

.cs-poi-info-icon {
  flex: 0 0 auto;
  border-radius: 8px;
}

.cs-poi-info-title strong {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.2;
}

.cs-poi-info-category,
.cs-poi-info-label,
.cs-poi-info-meta span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cs-poi-info-status {
  margin-top: .25rem;
  color: #1E4E6E;
  font-size: .82rem;
  font-weight: 700;
}

.cs-poi-info-media-row {
  display: flex;
  gap: .65rem;
  align-items: stretch;
  margin: .65rem 0;
}

.cs-poi-info-thumb {
  flex: 0 0 92px;
  width: 92px;
  height: 72px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(13, 43, 69, .1);
  background: #F2E9DB;
}

.cs-poi-info-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-poi-info-meta {
  display: grid;
  gap: .35rem;
  min-width: 0;
  font-size: .78rem;
}

.cs-poi-info-meta strong {
  display: block;
  max-width: 220px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cs-poi-info-body {
  max-height: 210px;
  overflow: auto;
  padding-right: .25rem;
  scroll-behavior: smooth;
}

.cs-poi-info-section {
  margin-bottom: .75rem;
}

.cs-poi-info-description {
  font-size: .86rem;
  line-height: 1.45;
}

.cs-poi-info-table {
  font-size: .76rem;
}

.cs-poi-info-table th {
  white-space: nowrap;
}

.cs-poi-info-scroll-actions {
  display: flex;
  justify-content: center;
  gap: .35rem;
  margin: .35rem 0 .5rem;
}

.cs-poi-info-scroll-actions button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(13, 43, 69, .16);
  border-radius: 999px;
  background: #fff;
  color: var(--cs-blue);
  font-weight: 800;
  line-height: 1;
}

.cs-poi-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(13, 43, 69, .08);
}

.badge-new {
  background: var(--cs-yellow);
  color: #3b2b00;
}

.cs-footer {
  background: var(--cs-blue);
  color: #fff;
}

.cs-footer-logo {
  height: 46px;
  width: auto;
}

.cs-mobile-body {
  background: #fff;
  overflow: hidden;
}

.cs-mobile-topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid rgba(13, 43, 69, .12);
  background: rgba(255, 255, 255, .97);
}

.cs-mobile-topbar img {
  height: 34px;
  width: auto;
}

.cs-admin-body {
  background: #f4f7fb;
}

.cs-admin-sidebar {
  background: #fff;
  border-right: 1px solid rgba(13, 43, 69, .1);
}

.cs-admin-sidebar .nav-link {
  color: var(--cs-dark);
  border-radius: 8px;
  font-weight: 600;
}

.cs-admin-sidebar .nav-link:hover {
  background: rgba(13, 43, 69, .08);
  color: var(--cs-blue);
}

.cs-admin-map {
  width: 100%;
  height: 320px;
  border-radius: 8px;
  border: 1px solid rgba(13, 43, 69, .12);
}

.cs-check-list label {
  margin-left: .4rem;
  margin-bottom: .35rem;
}

.cs-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: .4rem;
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(13, 43, 69, .12);
  border-radius: 8px;
  padding: .5rem;
}

.cs-icon-choice {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 42px;
  padding: .3rem;
  border: 1px solid rgba(13, 43, 69, .1);
  border-radius: 8px;
  background: #fff;
  color: #27384a;
  font-size: .78rem;
  text-decoration: none;
}

.cs-icon-choice:hover {
  border-color: #0d6efd;
  background: #f6f9ff;
}

.cs-upload-drop {
  border: 1px dashed rgba(13, 110, 253, .45);
  border-radius: 8px;
  background: #f8fbff;
  padding: .75rem;
}

.cs-upload-drop.is-dragover {
  border-color: #0d6efd;
  background: #edf5ff;
}

@media (min-width: 992px) {
  .cs-logo { height: 52px; }
}

@media (max-width: 991.98px) {
  .cs-map-shell {
    height: calc(100vh - 58px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(255px, 38vh) auto minmax(0, 1fr);
  }
  .cs-map-sidebar {
    grid-column: 1;
    grid-row: 3;
    order: 0;
    grid-template-rows: auto minmax(120px, 1fr) auto auto;
    border-right: 0;
    border-top: 1px solid rgba(13, 43, 69, .12);
  }
  .cs-map-canvas {
    grid-column: 1;
    grid-row: 1;
    order: 0;
    min-height: 255px;
  }
  .cs-map-categorybar {
    grid-column: 1;
    grid-row: 2;
    position: static;
    width: auto;
    max-height: none;
    margin: 0;
    padding: .45rem .65rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .cs-map-categorybar .d-flex {
    flex-direction: row;
    max-height: none;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  .cs-map-category-nav {
    display: none;
  }
  .cs-map-locate-btn {
    top: .65rem;
  }
}
