/* ===============================
   IKR GOOGLE SHEET – TOOLTIP CARD
================================ */

/* Tooltip container */


#ikrgoogle-sheet-tooltip {
  pointer-events: auto ;
    position: absolute;
  z-index: 9999;
  display: none;
  /* pointer-events: none; */
  text-transform: capitalize;

  background: #111;
  color: #fff;

  min-width: 140px;
  max-width: 260px;

  border-radius: 10px;
  overflow: visible;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;

  box-shadow:
    0 12px 30px rgba(0,0,0,0.45),
    0 4px 10px rgba(0,0,0,0.35);

  transform: translateZ(0);
  /* animation: slmTooltipFade 120ms ease-out; */
}


/* Card wrapper */
.ikrgoogle-sheet-tooltip-card {
  width: 100%;
  background: #0f0f0f;
  color: #fff;
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
}

/* IMAGE */
.ikrgoogle-sheet-tooltip-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* BODY */
.ikrgoogle-sheet-tooltip-body {
  padding: 14px;
}

/* TITLE */
.ikrgoogle-sheet-tooltip-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

/* ROWS */
.ikrgoogle-sheet-tooltip-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ikrgoogle-sheet-tooltip-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.95;
}


.ikrgoogle-sheet-tooltip-row span {
  color: #aaa;
  margin-right: 10px;
}

.ikrgoogle-sheet-tooltip-row strong {
  font-weight: 500;
  text-align: right;
}

/* STATUS BADGE */
.ikrgoogle-sheet-tooltip-status {
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

/* STATUS COLORS */
.ikrgoogle-sheet-status-available {
  background: #1f8f4a;
}

.ikrgoogle-sheet-status-reserved {
  background: #c48b14;
}

.ikrgoogle-sheet-status-reservedbutunpaid{
    background: #e74e20;
    color: #fff;

}
.ikrgoogle-sheet-status-unavailable {
  background: #a83232;
}

/* SVG HOVER COLORS */
.ikrgoogle-sheet-available-hover { fill: #2ecc71 !important; }
.ikrgoogle-sheet-reserved-hover { fill: #f1c40f !important; }
.ikrgoogle-sheet-unavailable-hover { fill: #e74c3c !important; }

/* INLINE IMAGE IN ROW */
.ikrgoogle-sheet-inline-image {
  max-width: 80px;
  border-radius: 6px;
}

@media screen and (max-width:767px) {
  #ikrgoogle-sheet-tooltip {
    pointer-events: all;
    max-width: 200px;
    min-width:140px;
  }
}






.controls button {
  background-color: #fff;
  color: #000;
}
.controls button svg path {
  background-color: #000 !important;
}
#slm-svg-frontend{
  overflow: hidden;
  position: relative;
}
#slm-svg-frontend svg {
  user-select: none;
  touch-action: none;
}

#slm-svg-frontend:fullscreen #slm-tooltip {
  position: fixed;
  z-index: 99999;
}
#slm-svg-frontend:fullscreen {
  background: #fff;
}

#slm-svg-frontend{
  overflow: hidden;
}


@media (hover: none) and (pointer: coarse) {
  #ikrgoogle-sheet-tooltip {
    pointer-events: auto;
    touch-action: none;
  }
}


/* ===============================
   MOBILE TOOLTIP CLOSE BUTTON
================================ */

.ikrgoogle-sheet-tooltip-card {
  position: relative;
}

/* Button base */
.ikrgoogle-sheet-tooltip-close {
  display: none;
}

/* Show ONLY on touch devices */
@media (hover: none) and (pointer: coarse) {
 

  .ikrgoogle-sheet-tooltip-close:active {
    transform: scale(0.92);
    background: rgba(0, 0, 0, 0.75);
  }
}


/* this css for the button on mobile device to open a new link  */
/* MOBILE ACTION BUTTON */
.ikrgoogle-sheet-tooltip-action {
  margin-top: 12px;
  text-align: center;
}

.ikrgoogle-sheet-tooltip-button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;

  background: #2271b1;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.ikrgoogle-sheet-tooltip-button:active {
  background: #135e96;
}


.ikrgoogle-sheet-tooltip-close {
	color: #000 !important;
	border-radius: 50% !important;
	width: 30px !important;
	height: 30px !important;
	padding: 0 !important;

	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	font-size: 22px !important;
	font-family: Arial, sans-serif; /* 🔑 stabilizes × glyph */
	line-height: 1 !important;
  background-color: #fff !important;
}

 .ikrgoogle-sheet-tooltip-close {
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: -11px;
    right: -9px;

    width: 32px;
    height: 32px;

    border-radius: 50%;
    border: none;

    background: rgba(0, 0, 0, 0.55);
    color: #fff;

    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
    z-index: 10;

    -webkit-tap-highlight-color: transparent;
  }
/* =====================================
   MOBILE TOOLTIP – CONTROLLED RESPONSIVE
   ===================================== */

@media (max-width: 767px) {

  /* Tooltip container */
  #ikrgoogle-sheet-tooltip {
    position: fixed !important;

    /* Centered on screen */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: 92vw !important;        /* 🔑 control width */
    max-width: 280px !important;   /* 🔑 desktop-like cap */
    min-width: unset !important;

    max-height: 80vh !important;   /* 🔑 control height */
    overflow: visible;

    border-radius: 14px;
    z-index: 100000;
  }

  /* Card wrapper */
  .ikrgoogle-sheet-tooltip-card {
    width: 100%;
    max-height: 80vh;
    overflow-y: visible;
    border-radius: 14px;
  }

  /* Image */
  .ikrgoogle-sheet-tooltip-image img {
    height: 140px;                 /* 🔑 image size */
    object-fit: cover;
  }

  /* Body */
  .ikrgoogle-sheet-tooltip-body {
    padding: 14px;
  }

  /* Title */
  .ikrgoogle-sheet-tooltip-title {
    font-size: 17px;               /* 🔑 font control */
    margin-bottom: 8px;
  }

  /* Rows */
  .ikrgoogle-sheet-tooltip-row {
    font-size: 13px;
    gap: 8px;
  }

  .ikrgoogle-sheet-tooltip-row span {
    font-size: 12px;
  }

  .ikrgoogle-sheet-tooltip-row strong {
    font-size: 13px;
  }

  /* Status badge */
  .ikrgoogle-sheet-tooltip-status {
    font-size: 11px;
    padding: 5px 9px;
  }

  /* Action button */
  .ikrgoogle-sheet-tooltip-button {
    font-size: 14px;
    padding: 10px;
  }

  /* Close button */
  .ikrgoogle-sheet-tooltip-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

/*  add zoom button position control css  */
.controls {
  position: absolute;
  z-index: 20;
  display: flex;
  gap: 6px;

   position: absolute;
   
    z-index: 100;
    display: flex;
    flex-direction: column-reverse;
    gap: 5px;
}

/* POSITIONS */
.controls-top-left {
  top: 12px;
  left: 12px;
}

.controls-top-right {
  top: 12px;
  right: 12px;
}

.controls-bottom-left {
  bottom: 12px;
  left: 12px;
}

.controls-bottom-right {
  bottom: 12px;
  right: 12px;
}
