* {
  box-sizing: border-box;
  /* margin: 0; */
  /* padding: 0; */
  font-family: Calibri;
}

@font-face {
  font-family: alkanz;
  src: url('../fonts/AL-KANZ.TTF');
}

@font-face {
  font-family: 'Calibri';
  src: local('Calibri Regular'), local('Calibri-Regular'),
    url('../fonts/Calibri.woff2') format('woff2'),
    url('../fonts/Calibri.woff') format('woff'),
    url('../fonts/Calibri.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

body {
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-flow: column;
  background-color: #fff9f0;
}

#map {
  position: relative;
  flex-grow: 1;
  /* This solves ios bug where it doesnt calculate map height correctly */
  height: 1px;
}

h2,
h5 {
  font-family: Calibri;
}


.myImg {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}



.ol-zoom .ol-zoom-out,
.ol-zoom .ol-zoom-in {
  display: none;
}


@media only screen and (min-width: 768px) {

  /* Styles for tablets and larger screens */
  .mybutton:hover {
    text-decoration: none;
    background-color: rgba(255, 204, 51, .4)
  }
}


.mybutton.clicked {
  background-color: rgb(255, 204, 51, 1);
}


/* start : Measure styling */

.ol-tooltip {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  opacity: 0.7;
  white-space: nowrap;
  font-size: 12px;
}

.ol-tooltip-measure {
  opacity: 1;
  font-weight: bold;
}

.ol-tooltip-static {
  background-color: rgb(255, 204, 51);
  color: black;
  border: 1px solid white;
}

.ol-tooltip-measure:before,
.ol-tooltip-static:before {
  border-top: 6px solid rgba(0, 0, 0, 0.5);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
  position: absolute;
  bottom: -6px;
  margin-left: -7px;
  left: 50%;
}

.ol-tooltip-static:before {
  border-top-color: #ffcc33;
}

/* end : Measure styling */


/* layer css */


.layersDiv {
  position: absolute;
  display: none;
  left: 3.25em;
  top: 8.75rem;
  width: max-content;
  /* height: 500px; */
  background-color: rgba(255, 255, 255, 0.8);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1em;
  line-height: 1.45;
  border-radius: 2px;
  border: 1px solid #d1d1d1;
  box-shadow: 2px 3px 2px rgba(0, 0, 0, 0.5);
  /* z-index: 4; */
  /* overflow: scroll; */
  padding: 5px 10px;
}

.layersDiv:empty {
  display: none;
}


#ziyafat-logo {

  width: 300px;

}

.navbar {
  transition: width 0.3s ease-in-out;
}

.boldnav {
  font-weight: bold;
  color: #d5a924 !important;
}

.search-div {
  direction: rtl;
  position: relative;
}

#search {
  border-color: darkgray;
  border-width: 2px;
}

.search-div .form-control {
  padding: 2px;
  text-align: center !important;
}

.ol-rotate {
  top: auto;
  bottom: 4em;
  right: 0.5em;
}

.filter-black {
  filter: invert(48%) sepia(79%) saturate(100%) hue-rotate(86deg) brightness(0%) contrast(119%);
  width: 30px;
  height: 30px;
}

.map-tools li {
  margin-top: 10px;
}

.btn-group-vertical {
  width: 100%;
  max-height: 50vh;

}





/* these styles are to modify the default ol css */
.control-box {
  background-color: rgba(255, 255, 255, .4);
  padding: 2px;
  top: 0.5em;
  left: 0.5em;
  position: absolute;
  border-radius: 0.25rem;
}

.control-box button {
  background-color: rgba(0, 60, 136, .5);
  height: 2rem;
  width: 2rem;
  border: none;
  border-radius: 2px;
  display: block;
  margin: 1px;
}

.control-box button:hover,
.control-box button:focus {
  text-decoration: none;
  outline: none;

}




/* ---------------------------------------------------------- */

/* Arrow Button Styling */
.arrow-btn {
  border: 3px solid white;
  border-right: none;
  width: 30px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  background: #3d6096;
  color: white;
  /* padding: 5px 10px; */
  font-size: 20px;
  border-radius: 5px 0 0 5px;
  cursor: pointer;
  transition: background 0.3s ease;

}

.arrow-btn:hover {
  background-color: hsl(216, 35.30%, 52.70%);

}

/* .panel {
  background-color: inherit !important;
} */

.m-05 {
  margin: 0.125rem;
  /* half of m-1 */
}

.panel ul {
  margin-top: 0px;
}

/* Offcanvas Customization */
#offcanvas {
  background-color: #fff9f0;
}

.offcanvas-bottom {
  height: 50vh;
  /* Default height */
  border-radius: 15px 15px 0 0;
  transition: transform 0.3s ease-in-out, height 0.3s ease-in-out;
}

/* Arrow Button */
.arrow-toggle-mobile {
  position: absolute;
  top: -23px;
  left: 50%;
  transform: translateX(-50%);
  background: inherit;
  border: 1px solid #ccc;
  border-radius: 15%;
  width: 50px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
  border: none;
}

/* Arrow Icon */
.arrow-toggle-mobile i {
  font-size: 20px;
  transition: transform 0.3s ease-in-out;
}

.custom-offcanvas {
  position: fixed;
  z-index: 1045;
  transition: transform 0.3s ease-in-out, height 0.3s ease-in-out;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Bottom offcanvas for mobile */
.custom-offcanvas.offcanvas-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 50vh;
  border-radius: 15px 15px 0 0;
  transform: translateY(100%);
}

/* End (right) offcanvas for desktop */
.custom-offcanvas.offcanvas-end {
  top: 0;
  right: 0;
  width: 40vw;
  max-width: 350px;
  height: 100%;
  transform: translateX(100%);
}

/* Show class for both variants */
.custom-offcanvas.show {
  transform: none;
  /* text-wrap: auto; */
}

.custom-offcanvas:not(.show) #hideOffcanvasBtnIcon {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}


.custom-offcanvas:not(.show) #toggleArrow {
  transform: translateY(30px);
  /* Move button with offcanvas */
}


#hideOffcanvasBtn {
  transition: transform 0.3s ease-in-out;
  transform: translateY(-50%) translateX(0);
}

/* Header styles */
.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

/* Body styles */
.offcanvas-body {
  padding: 1rem;
  overflow-y: auto;
  height: calc(100% - 60px);
}

/* driver.js  */
.driver-popover.driverjs-theme {
  background-color: #fff3cd;
  color: #000;
}

.driver-popover.driverjs-theme .driver-popover-title {
  font-size: 20px;
}

.driver-popover.driverjs-theme .driver-popover-title,
.driver-popover.driverjs-theme .driver-popover-description,
.driver-popover.driverjs-theme .driver-popover-progress-text {
  color: #000;
}

.driver-popover.driverjs-theme button {
  flex: 1;
  text-align: center;
  background-color: #000;
  color: #ffffff;
  border: 2px solid #000;
  text-shadow: none;
  /* font-size: 14px; */
  padding: 5px 8px;
  border-radius: 6px;
}

.driver-popover.driverjs-theme button:hover {
  background-color: #000;
  color: #ffffff;
}

.driver-popover.driverjs-theme .driver-popover-navigation-btns {
  justify-content: space-between;
  gap: 3px;
  margin-left: 0.5rem;
}

.driver-popover.driverjs-theme .driver-popover-close-btn {
  color: #9b9b9b;
}

.driver-popover.driverjs-theme .driver-popover-close-btn:hover {
  color: #000;
}

.driver-popover.driverjs-theme .driver-popover-arrow-side-left.driver-popover-arrow {
  border-left-color: #fff3cd;
}

.driver-popover.driverjs-theme .driver-popover-arrow-side-right.driver-popover-arrow {
  border-right-color: #fff3cd;
}

.driver-popover.driverjs-theme .driver-popover-arrow-side-top.driver-popover-arrow {
  border-top-color: #fff3cd;
}

.driver-popover.driverjs-theme .driver-popover-arrow-side-bottom.driver-popover-arrow {
  border-bottom-color: #fff3cd;
}