/* INSTALL BANNER ------------------------------------------------------ */
.install-banner {
  position: fixed;
  bottom: -100px;   /* hidden initially */
  left: 20px;
  right: 20px;
  background: #303030;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 12px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: bottom 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  z-index: 9999;
}

.install-banner.show {
  bottom: 100px;
  opacity: 1;
}

.install-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.install-text {
  flex: 1; /* take remaining space */
}

.install-button {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

.install-button:hover {
  background-color: #1558b0;
}

.install-close {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #5f6368;
  cursor: pointer;
}

.add-shortcut-button {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  position: absolute;
  bottom: 200px;   /* distance from bottom */
}


/*--------------------------- LOCATION BAR ---------------------------------*/
#location-banner {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: linear-gradient(to bottom, #1e62ff, #003d99);
  color: rgba(255, 255, 255, 0.733);

  padding: 4px 14px;
  border-radius: 14px;
  font-size: 14px;

  white-space: nowrap;
  font-weight: 600;
  text-transform: capitalize;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: auto;
  z-index: 10000;
}

#location-banner.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



/* 🔹 CONFIRMATION OVERLAY (full screen) -------------------------------------*/
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  font-size: 1.6rem;
  text-align: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* When visible */
.confirm-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: all;
}

/* 🔹 Text and Buttons - initial offscreen state */
.confirm-text,
.confirm-buttons {
  opacity: 0;
  transform: translateY(40px);
}

/* 🔹 Animate in when overlay becomes visible */
.confirm-overlay:not(.hidden) .confirm-text {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease-out, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: 0.05s; /* text comes first */
}

.confirm-overlay:not(.hidden) .confirm-buttons {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease-out, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: 0.15s; /* buttons follow slightly later */
}

/* 🔹 Text styling */
.confirm-text {
  margin-bottom: 1.5rem;
}

/* 🔹 Buttons */
.confirm-buttons {
  display: flex;
  gap: 2rem;
}

.confirm-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 0.4rem;
  font-size: 1.1rem;
  cursor: pointer;
  min-width: 5rem;
  transition: transform 0.15s ease, opacity 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;   /* Remove tap highlight on mobile */
}

/* Button colors */
.confirm-btn.yes {
  background-color: #e53935;
  color: white;
}

.confirm-btn.no {
  background-color: #555;
  color: white;
}

/* Hover effect only */
.confirm-btn:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

/* Remove default focus/active highlight on click/tap */
.confirm-btn:focus,
.confirm-btn:active {
  outline: none;
  box-shadow: none;
  background-color: inherit; /* keep original background */
  transform: none; /* prevent jump */
}

/* Hidden state */
.hidden {
  opacity: 0;
  pointer-events: none;
}


/* CUSTOM DROPDOWN -----------------------------------------------------------*/
.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-bottom: 0.5rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Dropdown Button */
.custom-dropdown .dropdown-button {
  padding: 1rem;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}

/* Dropdown List */
.custom-dropdown .dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: min(340px, 75vh);
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  margin-top: 0.25rem;
  display: none; /* toggled by .open */
  z-index: 10;
}

/* Open state */
.custom-dropdown.open .dropdown-list {
  display: block;
}

/* Dropdown Items */
.custom-dropdown .dropdown-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.2s;
}

.custom-dropdown .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-dropdown .dropdown-item.selected {
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Custom Scrollbar */
.custom-dropdown .dropdown-list::-webkit-scrollbar {
  width: 8px;
}

.custom-dropdown .dropdown-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.custom-dropdown .dropdown-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.custom-dropdown .dropdown-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Optional: Firefox scrollbar */
.custom-dropdown .dropdown-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
}


/* IMAGE LIGHTBOX ---------------------------------------------------------------------------------- */
.ccss-image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.ccss-image-lightbox.visible {
    opacity: 1;
    pointer-events: all;
}

.ccss-image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 0.5rem;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: zoom-out;
}
