/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: #f4f4f4;
  color: #111;
}

/* Prevent scroll while preloader is up */
body.preloading { overflow: hidden; }

/* ===== Preloader (full screen) ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;

  /* Forest photo background */
  background-image: url('nature pic.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: grid;
  place-items: center;
}

.hidden { display: none !important; }

/* ===== Centered “card” that contains the map & pins ===== */
.map-icon-container {
  position: relative;
  width: 420px;   /* card size */
  height: 320px;
}

/* White rounded card with drop shadow + subtle tilt */
.card-tilt {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  overflow: hidden; /* clip contents to rounded corners */
  transform: perspective(900px) rotateZ(-2deg) rotateY(-8deg);
}

/* ===== Map image (base layer inside the card) ===== */
.map-graphic {
  position: absolute;
  inset: 0;
  background-image: url('map_background.png');
  background-size: cover;
  background-position: center;
  z-index: 2;
}

/* ===== Rotating ring GIF UNDER the large red pin ===== */
.rotating-gif-layer {
  position: absolute;
  top: 155px;
  left: 151px;
  width: 40px;
  height: 40px;
  transform: translate(-25%, -25%);
  background-image: url('rotating_red_4pieces_slow.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 3;
  pointer-events: none;
  opacity: 0.95;
}

/* ===== Pins (top-most inside the card) ===== */
.location-pin {
  position: absolute;
  border-radius: 50% 50% 50% 0; 
  transform-origin: 50% 100%;
  transform: rotate(-45deg);
  z-index: 4;
}

.large-pin {
  background-color: #ad031d;
  width: 34px;
  height: 34px;
  top: 122px;  /* keep in sync with ring position */
  left: 160px;
  box-shadow: inset 0 0 0 7px #fff;
  animation: pulse-large 1.5s infinite ease-in-out;
}

.small-pin {
  background-color: #e66700;
  width: 22px;
  height: 22px;
  top: 208px;
  left: 315px;
  left: 315px;
  box-shadow: inset 0 0 0 4px #fff;
  animation: pulse-small 1.5s infinite ease-in-out .2s;
}

@keyframes pulse-large {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  50%      { transform: rotate(-45deg) scale(1.28); }
}
@keyframes pulse-small {
  0%, 100% { transform: rotate(-45deg) scale(.85); }
  50%      { transform: rotate(-45deg) scale(1.15); }
}

/* ===== Loading text (professional pill) =====
   Customize with CSS variables:
   --loading-color: text color
   --dot-speed: speed of dot animation (e.g., 0.9s, 1.2s, 1.8s)
*/
.loading-text {
  --loading-color: #111;   /* << set your preferred text color here */
  --dot-speed: 6s;       /* << control the speed of the dots here */

  position: absolute;
  bottom: 10px;
  right: 10px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 5px 12px;
  border-radius: 999px;
  color: var(--loading-color);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  font-weight: 600;
  line-height: 1;
  z-index: 5;

  /* smoother rendering on top of photo */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.loading-label {
  /* keep the word perfectly steady */
  white-space: nowrap;
}

/* Fixed-width dot area so text NEVER shifts */
.dots {
  display: inline-block;
  width: 3ch;                /* reserve space for '...' */
  text-align: left;          /* dots grow left-to-right */
  font-variant-numeric: tabular-nums;
  /* Optional subtle emphasis */
  opacity: 0.9;
}

/* Animated dots (no layout shift) */
.dots::after {
  content: '';
  animation: dots var(--dot-speed) steps(4, end) infinite;
}

@keyframes dots {
  0%   { content: '';   }
  33%  { content: '.';  }
  66%  { content: '..'; }
  100% { content: '...';}
}

/* ===== Main content (regular page) ===== */
#main-content {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 16px;
}
