/* Reset and base styles  */
* {
	padding: 0px;
	margin: 0px;
	border: none;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Links */

a, a:link, a:visited  {
    text-decoration: none;
}

a:hover  {
    text-decoration: none;
}

/* Common */

aside, nav, footer, header, section, main {
	display: block;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
	font-weight: inherit;
}

ul, ul li {
	list-style: none;
}

img {
	vertical-align: top;
}

img, svg {
	max-width: 100%;
	height: auto;
}

address {
  font-style: normal;
}

/* Form */

input, textarea, button, select {
	font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
	display: none;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
    outline: none;
}

button::-moz-focus-inner {
	padding: 0;
	border: 0;
}

label {
	cursor: pointer;
}

legend {
	display: block;
}

input[type='file'] {
	max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: white;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: -1;
}

.offcanvas-body {
    padding-left: 0;
    padding-right: 0;
}

@font-face {
    font-family: "San Francisco";
    font-weight: 400;
    src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff");
  }

.search {
    position: fixed;
    bottom: 56px;
    left: 16px;
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
}

.search__action {
    border-radius: 60px;
    padding: 8px 14px;
    color: white;
    background: #ffffff30;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: 0.2s;
}

.search__action:hover {
    background: #0E141C;
}

.search__icon {
    opacity: 1;
    font-size: 16px;
}

.add {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    background: #55A6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.add:hover{
    background: linear-gradient(180deg, #55A6FF 0%, #91d9ff 100%);
}

.add__icon {
    color: #ffffff;
    font-size: 32px;
    /* padding-bottom: 2px; */
}

.search-input {
    position: relative;
}

.search-input__content {
    padding: 14px 48px;
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 60px;
    display: grid;
    color: white;
    width: 100%;
    background-color: #283041;
    transition: 0.2s;
}

.search-input__content::placeholder {
    color: white;
    opacity: 0.4;
}

.search-input__icon {
    color: white;
    opacity: 1;
    font-size: 20px;
    position: absolute;
    top: 12px;
    left: 14px;
    transition: 0.2s;
}

.search-input__clear {
    position: absolute;
    top: 12px;
    right: 14px;
}

.search-input__clear-icon {
    font-size: 20px;
    color: white;
    opacity:30%
}

.search-input:focus-within .search-input__content {
    border: 1px solid rgba(255, 255, 255, 1);
}

.search-input:focus-within .search-input__icon {
    opacity: 1;
}

.search-no-data {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: white;
    align-items: center;
    text-align: center;
}

.search-no-data__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 20px;
}

.search-no-data__icon {
    color: white;
    font-size: 20px;
}

.search-no-data__title {
    font-weight: 600;
    font-family: 'Open Sans';
    font-style: normal;
    font-size: 16px;
}

.search-no-data__description {
    font-weight: 400;
    font-family: 'Open Sans';
    font-style: normal;
    font-size: 14px;
}

.search-no-data__button {
    display: flex;
    color:#55A6FF;
    width: 100%;
    border-radius: 12px;
    padding-top: 10px;
    padding-right: 12px;
    padding-bottom: 10px;
    padding-left: 12px;
    gap: 8px;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
}


.search-no-data__button-icon {
    color: #55A6FF;
    font-size: 20px;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 16px 0;
    overflow-y: auto;
    min-height: 0;
}

.search-container__item {
    padding: 0 32px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    color: white;
}

.search-container__item-description {
    font-family: 'Open Sans';
    font-style: normal;
    font-size: 13px;
    opacity: 0.6;
    padding: 2px 0;
}
.item-title {
    color: white;
    font-weight: 600;
    font-family: 'Open Sans';
    font-style: normal;
    font-size: 14px;
}


.search-container__item-icon {
    color: white;
    font-size: 20px;
    opacity: 0.2;
}

.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 16px 0;
}

@keyframes skeleton-shimmer {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }
  
.skeleton {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 25%,
    #3d3d3d 50%,
    rgba(255, 255, 255, 0.08) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  position: relative;
  overflow: hidden;
  }

.drawer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90vh;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    background: rgba(13, 14, 17, 1);
    border-radius: 48px 48px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.drawer-container.open {
    transform: translateY(0);
}

.drag-handle {
    width: 36px;
    height: 4px;
    background: #444444;
    margin: 8px auto;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.drag-handle:hover {
    background: #999;
}

.content {
    padding: 20px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
    overflow: hidden;
    max-height: calc(90vh - 40px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.bullits {
    background: #0E141C;
    border-radius: 12px;
    width:fit-content;
    height:fit-content;
    padding: 8px 0;
}

.textstyle {
    display: inline;
    margin: 2px;
    font-weight: 500;
    font-family: 'Open Sans';
    font-style: normal;
    color:#55A6FF;
    background-color: #ffffff10;
    border-radius: 8px;
    height: 44 px;
    font-size: 16px;
    /* color: white; */
    padding: 4px 16px;

  }

.preview-container {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    border-radius: 16px 16px 0 0;
    padding: 0px;
    max-height: 90vh;
    overflow-y: auto;
}

.preview-cards-wrapper {
    /* background-color: #0E1012; */
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.preview-card {
    width: 100%;
    border-radius: 12px;
}

.photo-card {
    height: 300px;
    overflow: hidden;
}

.preview-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.info-card {
    padding: 16px;
    height: fit-content;
}

.info-header {
    display: flex;
    padding: 0 8px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.title-container {
    flex: 1;
    padding-right: 8px;
}

.preview-name {
    font-size: 18px;
    color: white;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.preview-dates {
    font-size: 15px;
    color: #ffffff90;
    margin: 0;
    font-weight: 400;
    font-family: 'Open Sans';
    font-style: italic;
}

.close-icon {
    cursor: pointer;
    place-items: end;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.share-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    place-items: end;
    transition: background 0.2s;
    flex-shrink: 0;
}

.close-icon:hover {
    background: rgba(0, 0, 0, 0.1);
}

.close-icon svg {
    display: block;
    width: 40px;
    height: 40px;
}
@media (max-width: 600px) {
    .preview-container {
        bottom: 20px;
        left: 16px;
        right: 16px;
    }

    .photo-card {
        height: 150px;
    }

    .preview-name {
        font-size: 18px;
    }
}
.search,
.drawer-container,
.overlay {
    transition: none;
}

[style*="display: none"] {
    display: none !important;
}

a.mapboxgl-ctrl-logo {
    display: none !important;
}

.custom-pin {
    height: 56px;
    width: 40px;
    background-image: url("./Pin.png");
    background-size: contain;
    cursor: pointer;
}