/*
Template Name: Softek | Software and App Landing Website Template
Author: Pillarix
Author URI: https://wrapbootstrap.com/user/pillarix
Version: 1.0
*/
/*
-- Body
-- Custom Bootstrap
-- Index
-- Navbar
-- Back To Top
-- Mobile Sidebar
-- Page Loading
*/


/* Body */
html {
	/* Safari needs the clip at html level too or wide content expands the layout viewport */
	overflow-x: clip;
	/* Match the footer-end (bg-dark) so the canvas behind mobile browser bars
	   and overscroll doesn't show white below the dark footer */
	background-color: #212529;
}
body {
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
	font-size: 14px;
	background-color: #fff;
	/* AOS slide-in offsets extend elements past the right edge before they
	   animate in; clip (not hidden) so the sticky navbar keeps working */
	overflow-x: clip;
}
a {
	text-decoration: none;
	color: #1b1b1b;
	-webkit-transition: all 0.3s ease 0s;
	-moz-transition: all 0.3s ease 0s;
	-o-transition: all 0.3s ease 0s;
	transition: all 0.3s ease 0s;
}
a:hover {
	color: #0d6efd;
}

/* Custom Bootstrap */
.btn {
	font-size: 14px;
	padding: 12px 30px !important;
	font-weight: 600;
}
.btn-primary {
	background: #f14f00;
	border-color: #f14f00;
}
.btn-primary:hover, .btn-primary:focus {
	background: #e14a00;
	border-color: #e14a00;
}
.bg-primary {
	background-color: #f14f00 !important;
}
.shadow {
  box-shadow: 0 10px 40px 0 rgba(47,47,47,.1) !important;
}
.bg-light {
	background-color: #fff5f2 !important;
}
.text-primary {
	color: #f14f00 !important;
}

/* Index */
.transition-3d-hover {
  transition: all 0.2s ease-in-out;
}
.transition-3d-hover:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
}
.gradient-text{
	color: #000000;
}
.icon {
	height: 50px;
	width: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.user-img {
	width: 40px;
}
.admin-icon {
	height: 25px;
	width: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.social-icon {
	height: 40px;
	width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.icon-sm {
	height: 30px;
	width: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.footer-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Navbar */
.app-nav  a.nav-link.py-4 {
	padding-top: 35px !important;
	padding-bottom: 35px !important;
	color: #000;
	font-size: 15px;
}
.app-nav .navbar-nav .nav-link:hover {
	color: #f14f00;
}
.app-nav .navbar-nav .nav-link.active {
	color: #f14f00;
}
.osahan-header-logo .logo {
	height: 30px;
}
.navbar-nav .dropdown-menu {
  box-shadow: 0px 24px 21px rgb(0 0 0 / 11%) !important;
}
/* (The template's hover-open dropdown rule lived here; it fought Bootstrap's
   click toggling - hover kept the closed menu visible, left-aligned, off-screen) */
.dropdown-menu:hover .dropdown-item{
  opacity: 0.6;
}
.dropdown-menu .dropdown-item:hover{
  opacity: unset;
  font-weight: 500;
}
.dropdown-item{
  transition: all 0.2s ease-in-out;
  padding-right: 40px;
}
.dropdown-item:hover{
  -webkit-transform: translateX(3px);
  transform: translateX(3px);
}
.dropdown-item:after {
  content: "\ea6c";
  font-family: remixicon!important;
  font-style: normal;
  position: absolute;
  right: 0;
  font-size: 14px;
  line-height: 24px;
  opacity: 0;
	-webkit-transition: all 0.3s ease 0s;
	-moz-transition: all 0.3s ease 0s;
	-o-transition: all 0.3s ease 0s;
	transition: all 0.3s ease 0s;
}
.dropdown-item:hover:after{
  opacity: unset;
	-webkit-transition: all 0.3s ease 0s;
	-moz-transition: all 0.3s ease 0s;
	-o-transition: all 0.3s ease 0s;
	transition: all 0.3s ease 0s;
}
.dropdown-item {
  position: relative;
}

/* Back To Top */
#back-to-top {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 20px;
	box-shadow: 0 10px 40px 0 rgba(47,47,47,.1) !important;
	background-color: #fff;
	color: #2d2a3e;
	width: 50px;
	border-radius: 100px;
	cursor: pointer;
	height: 50px;
	border: 3px solid #ebebeb;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 14px;
}
#back-to-top:hover {
	box-shadow: 0 10px 40px 0 rgba(47,47,47,.1) !important;
	background-color: #2d2a3e;
	color: #ffffff;
}

/* Mobile Sidebar */
#sidebar .offcanvas-header .link-light {
    color: #000 !important;
}
#sidebar .offcanvas-body .nav-item .nav-link {
    text-align: center;
    padding: 15px 20px !important;
}
#sidebar .offcanvas-body .nav-item.dropdown {
    position: unset !important;
}
#sidebar .offcanvas-body .dropdown-menu {
    position: relative !important;
    transform: unset !important;
    box-shadow: none !important;
}
#sidebar .offcanvas-body .dropdown-menu .dropdown-mega-content .col-lg-3 {
    border: none !important;
    padding: 15px 15px !important;
    text-align: center;
}

/* Settings: home-base typeahead dropdown */
.home-base-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1050;
	margin: 4px 0 0;
	padding: 4px;
	background: #fff;
	border: 1px solid rgba(27, 27, 27, 0.15);
	max-height: 260px;
	overflow-y: auto;
}
.home-base-list li {
	padding: 8px 12px;
	border-radius: 8px;
	cursor: pointer;
}
.home-base-list li:hover,
.home-base-list li.active {
	background: #fff5f2;
	color: #f14f00;
}

/* Touch screens: small pill buttons and chip removers grow to a 44px-class
   hit area; pointer users keep the compact layout */
@media (pointer: coarse) {
	.media-actions .btn {
		min-height: 44px;
	}
	.base-chip-remove {
		padding: 10px 8px;
		margin: -10px -8px -10px 0;
	}
	.home-base-list li {
		padding: 12px;
	}
}

/* Reduced motion: keep every state change, drop the decorative movement.
   Feedback transitions (colors, opacity) stay - only transforms and the
   progress glide go still. */
@media (prefers-reduced-motion: reduce) {
	.place-thumb img,
	.media-manage-thumb img,
	.media-progress-bar {
		transition: none;
	}
	.place-thumb:hover img,
	.media-manage-card:hover .media-manage-thumb img {
		transform: none;
	}
}

/* Additional-location chips (Settings and the setup wizard) */
.base-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fff5f2;
	color: #f14f00;
	font-size: 0.875rem;
	font-weight: 600;
}
.base-chip-remove {
	border: 0;
	padding: 0;
	background: none;
	color: inherit;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
}
.base-chip-remove:hover {
	opacity: 1;
}

/* Error pages: soft brand-tinted "we are sorry" badge */
.error-badge {
	background: rgba(241, 79, 0, 0.1);
	color: #f14f00;
}

/* Map page: nav on top, map fills the rest of the window */
.map-shell {
	height: 100vh;
	height: 100dvh;
}

/* Add media modal */
.media-dropzone {
	border: 2px dashed rgba(27, 27, 27, 0.25);
	cursor: pointer;
	transition: border-color 120ms ease, background-color 120ms ease;
}
.media-dropzone:hover,
.media-dropzone.dragover {
	border-color: #f14f00;
	background-color: #fff5f2;
}
.media-preview {
	aspect-ratio: 1;
	background: #f8f9fa;
}
/* Everything that edits the selection goes quiet while an upload runs */
.media-dropzone.disabled {
	pointer-events: none;
	opacity: 0.5;
}
#mediaPreviews.uploading .btn-close {
	visibility: hidden;
}
#mediaPreviews.uploading img {
	opacity: 0.75;
}
.media-progress {
	height: 10px;
	border-radius: 5px;
}
.media-progress-bar {
	background-color: #f14f00;
	/* scaleX instead of width: compositor-only, no layout work per frame */
	width: 100%;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 150ms ease;
}
.media-progress-bar.bg-success {
	background-color: #198754 !important;
}

/* Settings → Media: the library grid */
.media-manage-thumb {
	aspect-ratio: 4 / 3;
	background: #f8f9fa;
}
.media-manage-thumb img {
	transition: transform 120ms ease;
}
.media-manage-card:hover .media-manage-thumb img {
	transform: scale(1.03);
}
/* Action row: the share button gives way (and truncates its label) so the
   icon buttons never clip, however narrow the card gets */
.media-actions .media-share-btn {
	min-width: 0;
	flex: 0 1 auto;
}
.media-revoke {
	cursor: pointer;
	color: #dc3545;
}
.media-revoke:disabled {
	opacity: 0.5;
}
.delete-preview {
	width: 72px;
	height: 72px;
	background: #f8f9fa;
}
.details-preview {
	width: 96px;
	height: 96px;
	background: #f8f9fa;
}
.details-table .details-key {
	width: 1%;
}
.details-table .details-value {
	word-break: break-word;
}

/* Place markers: count badge on spots with several photos */
.place-badge {
	position: absolute;
	top: -6px;
	left: 14px;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: #f14f00;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

/* Place modal thumbnails and viewer */
.place-thumb {
	aspect-ratio: 1;
	background: #f8f9fa;
	cursor: pointer;
}
.place-thumb img {
	transition: transform 120ms ease;
}
.place-thumb:hover img {
	transform: scale(1.04);
}
/* Single-photo view: fullscreen modal, image fills everything but header/footer */
#placeViewerImg {
	width: 100%;
	height: calc(100vh - 205px);
	min-height: 280px;
	object-fit: contain;
	background: #111;
	cursor: zoom-in;
}
/* Clicked photo: full-bleed dark lightbox over the entire screen */
#placeViewer.expanded {
	position: fixed;
	inset: 0;
	margin: 0 !important;
	background: #111;
	z-index: 3000; /* above the Bootstrap modal */
}
#placeViewer.expanded #placeViewerImg {
	position: absolute;
	inset: 0;
	height: 100%;
	min-height: 0;
	cursor: zoom-out;
}
.modal-fullscreen #placeViewer {
	/* photo hugs the modal edges for maximum room */
	margin: 0 -0.5rem;
}

/* Progressive AOS: content stays visible until landing.js adds aos-enabled
   and hands visibility to AOS - no blank flash, and no-JS still gets a page */
body:not(.aos-enabled) [data-aos] {
	opacity: 1 !important;
	transform: none !important;
}

/* Settings & Profile page (adapted from the template's account-settings) */
.osahan-user-header {
	background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)), url(/assets/img/hero.jpg);
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 320px;
	border-radius: 24px;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: cover;
	overflow: hidden;
}
.btn-file {
	position: relative;
	overflow: hidden;
}
.btn-file input[type=file] {
	position: absolute;
	top: 0;
	right: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: inherit;
}
.osahan-sidebar {
	margin-top: -120px;
	position: relative;
}
.osahan-sidebar .profile-avatar {
	width: 120px;
	height: 120px;
	font-size: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nav-avatar {
	width: 28px;
	height: 28px;
	font-size: 0.85rem;
	line-height: 1;
}
/* Clickable avatar: hover overlay + always-visible camera badge as the cue */
.profile-avatar-picker {
	width: 120px;
	height: 120px;
	cursor: pointer;
}
.profile-avatar-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 1.5rem;
	opacity: 0;
	transition: opacity 120ms ease;
}
.profile-avatar-picker:hover .profile-avatar-overlay,
.profile-avatar-picker:focus-within .profile-avatar-overlay {
	opacity: 1;
}
.profile-avatar-badge {
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #f14f00;
	font-size: 1.1rem;
	border: 2px solid #fff;
}
.profile-avatar-picker:hover .profile-avatar-badge {
	opacity: 0;
}
.osahan-sidebar-links .dropdown-item {
	font-size: 15px;
	padding: 12px 15px;
	color: #595c5f;
	border-radius: 8px;
	margin: 2px 0;
}
.osahan-sidebar-links .dropdown-item.active,
.osahan-sidebar-links .dropdown-item:hover {
	background: rgba(241, 79, 0, 0.08);
	color: #f14f00;
}
@media (max-width: 991.98px) {
	.osahan-user-header {
		height: 200px;
	}
	.osahan-sidebar {
		margin-top: -60px;
	}
}

/* Avatar crop modal */
.crop-viewport {
	position: relative;
	width: 280px;
	height: 280px;
	overflow: hidden;
	background: #111;
	cursor: grab;
	touch-action: none;
	user-select: none;
	box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(0, 0, 0, 0.15);
}
.crop-viewport.dragging {
	cursor: grabbing;
}
.crop-viewport img {
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: 0 0;
	max-width: none;
	pointer-events: none;
}
.crop-zoom {
	max-width: 280px;
}

/* Public share page: photo card revealed once the map arrives */
.share-card {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, calc(-50% + 16px));
	width: min(420px, calc(100vw - 32px));
	max-height: calc(100% - 48px);
	overflow-y: auto;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 400ms ease, transform 400ms ease;
}
.share-card.visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%);
}
.share-card img {
	max-height: 45vh;
	object-fit: contain;
	cursor: zoom-in;
}
/* Collection page: same card, wider, because it holds a grid not one photo */
.share-card.collection-card {
	width: min(560px, calc(100vw - 32px));
}
/* Clicked photo: full-bleed dark lightbox over the entire screen */
.share-card.expanded {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	/* !important: .share-card.visible's translate has equal specificity and
	   would otherwise shove the fullscreen card half off-screen */
	transform: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background-color: #111 !important;
	overflow: hidden;
	z-index: 3000; /* above the navbar and every Leaflet pane */
}
.share-card.expanded img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	cursor: zoom-out;
}
.share-card.expanded #shareCaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 14px 18px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
	color: #fff;
	z-index: 1;
}
.share-card.expanded #shareCaption .text-muted {
	color: rgba(255, 255, 255, 0.75) !important;
}

/* Collection lightbox: the photo fills the screen, so the card's own heading
   gets out of the way and the way back floats over the picture */
/* !important: the heading is a Bootstrap .d-flex, whose display: flex carries
   !important and would otherwise keep it on top of the fullscreen photo */
.share-card.collection-card.expanded #collectionHeader {
	display: none !important;
}
.share-card.collection-card.expanded #collectionBackBtn {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 2;
	background: rgba(255, 255, 255, 0.9);
}
/* The zoomed photo owns its gestures: touch-action none stops the browser
   panning or pinching the page out from under the pinch handler */
.share-card.collection-card.expanded #collectionViewerImg {
	touch-action: none;
	transform-origin: center center;
}
.share-card.collection-card.expanded #collectionViewerImg.zoomed {
	cursor: grab;
}
