/* styles.css */

[hidden] {
  display: none !important;
}

/* Charcoal */
:root {
  --primary-color:rgb(60, 60, 60);
  --secondary-color:rgb(60, 60, 60, 0.4);
}

/* Disable pull-to-refresh */
html, body {
  margin: 0;
  padding: 0;
  overscroll-behavior-y: none;
  forced-color-adjust: none; /* Disable browser theme override */
}

/* Disable text selection */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input::placeholder {
  color: #ffffffa2;
  font-style: italic;
}

.tiled-background {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--primary-color);
  background-image: url('/tile.png');
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
  text-align: center;
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* Remove focus and active visual state */
button {
  -webkit-user-select: none; /* Prevent text selection in Safari */
  -moz-user-select: none; /* Prevent text selection in Firefox */
  -ms-user-select: none; /* Prevent text selection in IE */
  user-select: none; /* Standard syntax for disabling text selection */
}

.css-flex-grow {
  flex-grow: 1;  /* Equivalent to the flex-grow utility in Tailwind */
}


/*------------ 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);
}



/* SPINNER ------------------------------------------------------------------*/

/* Spinner container (minimal styling for centering) */
.loading-spinner {
  position: fixed; /* fixed to viewport */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* no background */
  z-index: 9999; /* keep on top */
  /* no width/height needed */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner animation */
.spinner {
  width: 256px;
  height: 256px;
  border: 1px solid #ff00ff;
  border-top: 3px solid #00ffff;
  border-radius: 40%;
  animation: spin 0.8s linear infinite;
}

/* Optional: hide/show utility */
.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(720deg);
  }
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

.fade-animation {
  animation: fadeInOut 1s ease-in-out forwards;
}

@keyframes scaleUp {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.scale-up {
  animation: scaleUp 0.6s ease-out forwards;
}




/*----- WIFI WARNING ----------------------------------------------*/
.wifi-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  text-align: center;
}

.wifi-icon {
  width: 48px;
  height: 48px;
  animation: wifi-blink 1s infinite ease-in-out;
}

@keyframes wifi-blink {
  0%, 100% { opacity: 0; transform: scale(0.95); }
  50% { opacity: 0.8; transform: scale(1); }
}

.hidden {
  display: none;
}






/* LOGOS ----------------------------------------------------------------- */
.splash-container {
  position: fixed;
  top: 40%;
  width: 100%;
  height: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column; /* stack children vertically */
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.coming-soon-text {
  margin-top: 8px;
  font-weight: bold;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.logo-container {
  position: fixed;
  top: 0px;
  width: 90%;
  height: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.main-logo-img {
  width: 192px;
  height: 74px;
  margin: 0;             /* remove any extra margins */
  display: block;        /* prevent inline spacing issues */
  transition: transform 0.2s ease;
}





/* MAIN MENU ------------------------------------------------------*/
/* Background overlay */
.menu-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* When menu is visible */
.menu-modal.active {
  opacity: .95;
  pointer-events: auto;
}

/* The actual side menu panel */
.menu-content {
  width: 100px;
  background: #000000;
  height: 100%;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2.5rem;
  position: relative;
}

/* Slide-in when active */
.menu-modal.active .menu-content {
  transform: translateX(0);
}

/* Menu items */
.menu-items {
  list-style: none;
  padding: 4rem 0 0 0;
  margin: 0;
}

.menu-items li {
  margin: 1.5rem 0;
}

.menu-items a {
  display: block;       /* makes the link fill the width of its parent */
  text-align: left;     /* explicitly left-align text */
  color: #eee;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  padding: 0.2rem 0;    /* optional: adds vertical spacing inside the link */
}

.menu-items a:hover {
  color: #00bfff;
}








/* LISTINGS VIEW --------------------------------------------  */

/* Wrapper that clips the scrolling content */
.listings-wrapper {
  position: absolute;
  top: 140px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;         /* scrolling only inside this area */
  z-index: 0;
  background: transparent;
}

.listings-container {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* ignore clicks when hidden */
  transition: opacity 0.5s ease, visibility 0.5s;

  -webkit-overflow-scrolling: touch; /* smooth scrolling for iOS */
  margin-top: 0rem;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  padding: 0 20px;
}

.listings-container.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 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 */
}


/* NAVIGATIONS ---------------------------------------------------------- */

.nav-container {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* ignore clicks when hidden */
  transition: opacity 0.5s ease, visibility 0.5s;

  position: fixed;
  top: 80px;
  width: 100%;
  height: 32px;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  align-items: center;
  gap: 4rem; /* space between buttons */
  z-index: 1;
}

.nav-container.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cmd-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cmd-btn:focus {
  outline: none;
}

.cmd-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5; /* dim the button */
}

.cmd-button-img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.cmd-btn:active .cmd-button-img {
  transform: scale(0.9);
  filter: brightness(0.85);
  transition-duration: 0.1s;
  transition-timing-function: ease-out;
}

.cmd-btn:disabled .cmd-button-img {
  filter: grayscale(100%) brightness(0.7);
  transform: none !important; /* prevent scale effect */
  transition: none; /* no animation */
}




/* PLACE CARD BUTTONS ------------------------------------- */

.call-button-img {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.menu-button-img {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}




/* ADMIN LINK --------------------------------------------  */

.admin-link-container {
  margin-bottom: 0rem;
  display: flex;
  justify-content: center;
}

.admin-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.admin-link:hover {
  text-decoration: underline;
  opacity: 1;
}





/* TITLES --------------------------------------------  */

.site-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
}

.site-subtitle {
  font-size: 1.25rem;
  color: white;
}




/* AUTH VIEW --------------------------------------------  */

.auth-view {
  display: none;
  position: absolute;
  top: 200px; /* below your nav & logo */
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.auth-input {
    padding: 1rem;
    font-size: 1rem;
    border: 0px;
    border-radius: 8px;
    width: 16rem; /* Width for the inputs */
    margin-bottom: 0.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    outline: none;
}

.button-row {
    display: flex;
    gap: 0.5rem;
}

.auth-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.auth-btn:hover {
    opacity: 0.8;
}

.forgot-password-btn {
    all: unset; /* Resets all default button styles */
    font-size: 0.875rem; /* Smaller font size */
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    margin-top: 1rem;
}

.user-info {
    font-size: 0.875rem;
    color: white;
    margin-top: 1rem;
}

.logos-container {
  width: 90%;
  margin-top: auto; /* pushes it to bottom */
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 1rem;
}

.poweredby-logo-img {
  width: 800px;
  height: auto;
  max-width: 100%;
  transition: transform 0.2s ease;
}



/* ABOUT VIEW --------------------------------------------  */

.about-modal {
  position: fixed;
  inset: 0;
  background: rgba(22, 22, 22, 0.8); /* slightly darker overlay */
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s;
}

.about-modal.visible {
  pointer-events: auto;
  opacity: 1;
}

.about-content {
  position: relative; /* make canvas absolute relative to this */
  z-index: 0;         /* keep text on top */
  background: #00000000;
  color: #f0f0f0cc;
  padding: 2rem;
  width: 100%;
  height: 100%;
  max-width: 600px;
  overflow-y: auto;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  overflow: hidden;        /* prevent scrollbars */
}

.webgl-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center it */
  z-index: 0;
  pointer-events: none;
}

/* main title for the modal, top group */
.about-content h2 {
  color: #d9ff00;
  font-size: 1.2rem;
  margin: 0 0 0.3em 0;
}

/* subtitles inside content */
.about-content h3 {
  color: #d9ff00;
  font-size: 1rem;
  font-weight: normal;
  margin: 1.2em 0 0.2em 0;
}

/* paragraphs / text under headings */
.about-content p {
  margin: 0 0 1em 0;
  line-height: 1.3;
}

.contact-content {
  position: relative; /* make canvas absolute relative to this */
  z-index: 0;         /* keep text on top */
  background: #00000000;
  color: #f0f0f0cc;
  padding: 2rem;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  max-width: 600px;
  overflow-y: auto;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  overflow: hidden;        /* prevent scrollbars */
}

.contact-content h2 {
  color: #d9ff00;
  font-size: 1.2rem;
  margin: 0 0 0.3em 0;
}

/* subtitles inside content */
.contact-content h3 {
  color: #d9ff00;
  font-size: 1rem;
  font-weight: normal;
  margin: 1.2em 0 0.2em 0;
}

/* paragraphs / text under headings */
.contact-content p {
  margin: 0 0 1em 0;
  line-height: 1.3;
}

.contact-content a {
  color: #4cafef;
  text-decoration: none;
}

.content-content a:hover {
  color: #4cafef;
  text-decoration: underline;
}



/* EDIT MODAL ---------------------------------------------------------------*/

.edit-modal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* ignore clicks when hidden */
  transition: opacity 0.5s ease, visibility 0.5s;
  position: fixed;       /* stay on top of page content */
  top: 140px;
  left: 0;
  width: 100%;
  height: 100%;   
  /*justify-content: center; /* center modal content vertically */
  align-items: center;      /* center modal content horizontally */
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  align-items: center;
  gap: 0.5rem;
  z-index: 900;
  /*background-color: rgba(0, 0, 0, 0.4); /* optional semi-transparent overlay */
  /*backdrop-filter: blur(16px);*/
}

.edit-modal.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Container for the form */
.edit-form {
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  align-items: center;
  gap: 0.5rem;
  width: 90%;
  /* max-width: 600px; */
  margin: 0 auto;
}

/* Form Input and Textarea Styling */
.form-field {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin-bottom: 0rem;
}

.form-field label {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition: none;
  font-style: italic;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  padding: 1rem;
  font-size: 1rem;
  border: 0px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  outline: none;
}

/* Form Input and Textarea Styling for EN */
.form-field-en {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin-bottom: 0rem;
}

.form-field-en label {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.875rem;
  color: rgba(175, 190, 255, 0.363);
  pointer-events: none;
  transition: none;
  font-style: italic;
}

.form-field-en input,
.form-field-en select,
.form-field-en textarea {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  padding: 1rem;
  font-size: 1rem;
  border: 0px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(0, 17, 131, 0.315);
  color: #a9b6e0;
  outline: none;
}

/* name + menu + active checkbox row */
.form-row-name {
  display: flex;
  align-items: center;
  justify-content: space-between; /* already distributes items */
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
}

/* make name input take all remaining space */
.form-row-name .form-field {
  flex: 1; /* occupies remaining space on the left */
}

/* right side checkboxes container */
.form-row-name .checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 0; /* remove extra padding */
  height: 100%; /* match sibling input height */
}

/* checkboxes size */
.form-row-name input[type="checkbox"] {
  width: 1.5em;
  height: 1.5em;
  accent-color: #5ca0ff;
}


/* two-column row for quota + used */
.form-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
}

.form-row .form-field {
  flex: 1;
}

/* Add padding to textarea so the label doesn't overlap */
textarea {
  min-height: 100px;
  resize: vertical;
}

.big-input {
  font-size: 2rem;
  font-weight: bold;
}

.normal-input {
  font-size: 2rem;
}

/* Button container */
.center {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0rem;
}

/* Buttons */
.center button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Remove focus styles */
.center button:focus {
  -webkit-tap-highlight-color: transparent;
  outline: none; /* Remove outline on focus */
}





/* Custom Dropdown Container -----------------------------------------------------------*/
.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);
}





/*---------- scrollable list -------------------*/
.scrollable-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.checkbox-item {
    margin-bottom: 5px;
}
















/* 🔹 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;
}
















/* CATEGORIES -----------------------------------------------------------------*/

.ccss-btn-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.ccss-btn {
  margin: 0.25rem;
  padding: 1rem 1.5rem;
  width: 16rem;
  background-color: rgba(255, 255, 255);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 0.875rem;
  text-align: left;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;

  opacity: 0;
  transform: translateY(30px) translateX(0px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ccss-btn.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.ccss-btn .ccss-btn-text {
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--primary-color);
}

.ccss-btn .ccss-btn-subtext {
  font-size: 0.875rem;
  text-align: right;
  color: var(--secondary-color);
}

.ccss-btn:active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(0.95);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}




/* PAGE TITLE -----------------------------------------------------------------*/

.ccss-pagetitle-container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 16rem;
  margin-bottom: 1rem;
}

.ccss-pagetitle-text-left {
  width: 50%;
  text-align: left;
  font-weight: 600;
  color: white;
}

.ccss-pagetitle-text-right {
  width: 50%;
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
}





/* SCREEN SHINE ---------- */
#screen-shine {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;

  /* diagonal slanted gradient: white in middle, transparent at edges */
  background: linear-gradient(
    90deg,               /* gradient goes across its width */
    rgba(255,255,255,0) 0%,  /* start transparent */
    rgba(255, 255, 255, 0.2) 50%, /* center opaque */
    rgba(255,255,255,0) 100% /* end transparent */
  );

  transform: rotate(30deg) translateX(-100%);
  will-change: transform, opacity;  /* hint browser for GPU compositing */
  backface-visibility: hidden;      /* further GPU optimization */
}





/* PLACE CARD -----------------------------------------------------------------*/

.ccss-place-container {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  max-width: 38rem;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;

  opacity: 0;
  transform: translateY(30px) translateX(0px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ccss-place-container.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.ccss-place-hover:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ccss-place-container.active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(0.95);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Faded style for inactive places */
.ccss-place-container.inactive-place {
  opacity: 0.5;           /* visually grayed out */
  background-color: #f0f0f0; /* optional: subtle background change */
}

/* PLACE THINGS -------------------------------------------------------- */

.css-place-title {
  all: unset;
  display: inline-block;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--primary-color);
}

.css-place-menu-icon {
  all: unset;
  display: inline-block;
  margin-left: 1rem;
  cursor: default;
  line-height: 1;
  opacity: 1;
  transition: opacity 0.2s;
}

.css-place-menu-icon.hidden {
  opacity: 0;
  pointer-events: none;
}

.css-place-menu-icon.dimmed {
  opacity: 0.3;
  pointer-events: none;
}

.css-place-phone {
  all: unset;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1.7;
  display: flex;
}

.css-place-phone-link {
  all: unset;
  display: inline-block;
  text-decoration: none;
  margin-right: 0.5rem;
  line-height: 2;
  vertical-align: middle;
}

.css-place-details {
  max-height: 0;
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--primary-color);
  transition: max-height 0.2s ease; /* Ensure smooth transition */
}

.css-place-details-expanded {
  max-height: 1000px; /* Use a high enough value to allow content to expand fully */
  transition: max-height 0.2s ease; /* Ensure smooth transition */
}

.css-place-desc {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary-color);
}

.css-place-desc-en {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--secondary-color);
}

.css-place-address {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary-color);
}

.css-place-expand-arrow {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--secondary-color);
}



/* ITEM CATEGORIES -------------------------------------------------------- */

.ccss-place-title2 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.ccss-itemcategory-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.ccss-itemcategory-btn {
  margin: 0.5rem; /* m-2 */
  padding: 0.5rem 1rem; /* px-4 py-2 */
  width: 16rem; /* w-64 */
  background-color: white; /* bg-white */
  color: var(--primary-color);
  border-radius: 0.375rem; /* rounded */
  transition: all 0.3s ease; /* transition */
  font-size: 0.875rem; /* text-sm */
  text-align: left; /* text-left */
}

.ccss-itemcategory-name-tr {
  font-size: 1.125rem; /* text-lg */
  font-weight: 600; /* font-semibold */
  text-align: left; /* text-left */
  color: var(--primary-color);
}

.ccss-itemcategory-name-en {
  font-size: 0.875rem; /* text-sm */
  color: var(--secondary-color);
  text-align: right; /* text-right */
}





/* ITEMS LISTER ---------------------------------------------------------------------------------- */

/* Common Item Styles */
.item {
    background-color: #ffffff;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-align: left;
    max-width: 38rem;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  
    opacity: 0;
    transform: translateY(30px) translateX(0px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.item.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.item-disabled {
  background-color: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  text-align: left;
  max-width: 38rem;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;

  opacity: 0;
  transform: translateY(30px) translateX(0px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.item-disabled.visible {
  opacity: 0.5;
  transform: translateY(0) translateX(0);
}

.item-details-closed {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.item-details-open {
    overflow: visible;
    transition: all 0.5s ease;
}

/* THE ITEM --------------------------------------------------------------- */

.ccss-item-container {
  margin-bottom: 0rem;
}

.ccss-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ccss-item-name-tr {
  all: unset;
  display: block;
  color: var(--primary-color);
  font-size: 1.125rem;
  font-weight: 600;
}

.ccss-item-name-en {
  all: unset;
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.ccss-item-price {
  all: unset;
  display: block;
  font-weight: 700;
  margin-left: 1rem;
  color: #2563eb;
}

.ccss-item-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.ccss-item-details[data-open="true"] {
  transform: scaleY(1);
}

.ccss-item-desc-tr {
  all: unset;
  display: block;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

.ccss-item-desc-en {
  all: unset;
  display: block;
  color: var(--secondary-color);
  font-size: 0.875rem;
}

.ccss-item-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  float: left;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.ccss-item-image.zoomed {
  width: auto;
  max-width: 100%;    /* never exceed container width */
  max-height: 80vh;   /* fits viewport if needed */
  height: auto;
  border-radius: 8px;
  transition: all 0.3s ease;
}




/* 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;
}
