@charset "UTF-8";
/*
Terrain360 Gallery Styles
Version: 1.0
Inspired by Terrain360 site styles
*/

/* Base Styles */
html {
    -webkit-text-size-adjust: none;
}

body {
    font-family: colfax-web, sans-serif;
    font-weight: 500;
    font-style: normal;
    background-image: url(https://d3kfjvhh435dey.cloudfront.net/_laravel/images/uploads/2023/12/pattern.png);
    background-repeat: no-repeat;
    background-size: 80%;
    background-attachment: fixed;
    background-position: right;
    background-color: #000000;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: colfax-web, sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
}

p {
    font-size: 16px;
    font-family: colfax-web, sans-serif;
    font-weight: 300;
}

/* Forms and Inputs */
.form-control {
    border-color: #495057;
    background-color: #212529;
    color: #f8f9fa;
}

.form-control::placeholder {
    color: #6c757d;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Map Styles */
#map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.btn-download:hover {
    background-color: #157347;
    border-color: #146c43;
    color: white;
}
/* Mapbox popup styling - WITH 200ms FADE */
.mapboxgl-popup {
    background: rgba(0, 0, 0, 0.95) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
    opacity: 0 !important; /* Start invisible */
    transition: opacity 0.2s ease-in-out !important; /* 200ms fade */
}

.mapboxgl-popup-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.mapboxgl-popup.fade-in {
    opacity: 1 !important; /* Fade IN complete */
}

.mapboxgl-popup-tip {
    border-top-color: rgba(0, 0, 0, 0.95) !important;
    border-bottom-color: rgba(0, 0, 0, 0.95) !important;
    border-left-color: rgba(0, 0, 0, 0.95) !important;
    border-right-color: rgba(0, 0, 0, 0.95) !important;
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Clean up old classes */
.popup-inner, .popup-text { display: none; } /* Not needed with inline styles */
/* Unified Gallery Cards (for both index.php and view-gallery.php) */
.card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border 0.3s ease;
    background-color: #343a40;
    border-radius: 10px;
    border: 0px solid transparent;
}

.card:hover {
    transform: scale(1.05);
}

.card.highlighted {
    border-color: #ff6b35;
    transform: scale(1.05);
}

.card-img-top,
.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, transparent, #000000);
    opacity: 0.7;
    z-index: 1;
    border-radius: 10px;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    color: white;
    text-shadow: 1px 1px 2px black;
    z-index: 2;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-text {
        font-family: colfax-web, sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
    font-style: normal;
    font-weight: 700;
    position: relative;
}

/* Modal Styles - Updated to match share modal design */
.modal {
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    max-width: 800px;
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
}

.modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 0;
}

#imageCaption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 300;
}

.modal-body {
    background: transparent;
}

.modal-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.btn-close-white:hover {
    opacity: 1;
}

.carousel-inner img {
    max-height: 70vh;
    width: 100%;
    object-fit: contain;
    margin: auto;
    border-radius: 8px;
}

/* Share Modal (if needed separately) */
.share-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    background: rgba(20, 20, 20, 0.95);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.share-modal-content h3 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.share-modal-content label {
    display: block;
    color: #ddd;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.close-modal:hover {
    opacity: 1;
}

/* Hover Effects - Exclude card links to prevent underline */
.nav-link:not(.btn):not(.card-link):not(.leaflet-control), a:not(.btn):not(.card-link):not(.leaflet-control) {
    position: relative;
    text-decoration: none;
}

.nav-link:not(.btn):not(.card-link):not(.leaflet-control):hover::after, a:not(.btn):not(.card-link):not(.leaflet-control):hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: currentColor;
    transition: width 0.3s ease;
}

/* Button Hover */
.btn:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.btn-hom-peach-small {
    background-color: #fd7763;
    border: 1px solid #fd7763;
    border-radius: 15px;
    font-family: colfax-web, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 12px;
    padding: .5em 1em;
    transition: all 0.5s 
ease;
}

.btn-hom-peach-small:hover {
    background-color: #fd7763;
    border-color: #ffffff;
    color: white;
}
.btn-hom-grey-small {
    background-color: #8a8a8a;
    border: 1px solid #8a8a8a;
    border-radius: 15px;
    font-family: colfax-web, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 12px;
    padding: .5em 1em;
    transition: all 0.5s ease;
	filter:none!important;
}
.btn-hom-grey-small:hover {
    background-color: #8a8a8a;
    border-color: #ffffff;
    color: white;
	filter:none!important;
}

.btn-hom-grey-large {
    background-color: #8a8a8a;
    border: 1px solid #8a8a8a;
    border-radius: 15px;
    font-family: colfax-web, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 14px; /* +2px */
    padding: .6em 1.2em; /* +0.1em height, +0.2em width */
    transition: all 0.5s ease;
}
.btn-hom-grey-large:hover {
    background-color: #8a8a8a;
    border-color: #ffffff;
    color: white;
}

/* Loading Spinner */
.spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #ccc;
    border-top-color: #333;
    animation: spin 1s infinite linear;
    margin-right: 10px;
}
/* FOOTER LOGO ROLL IN - FIXED */
@keyframes rollIn {
  0% {
    transform: translateX(300%) rotate(0deg);
  }
  100% {
    transform: translateX(0) rotate(-720deg); /* 2 full rolls */
  }
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animated-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.animated-logo svg {
  width: 50px;
  height: 50px;
}

.animated-text {
  opacity: 0;
}

.animated-text img {
  height: 42px;
  width: auto;
}

/* START ANIMATIONS ON LOAD */
.animate-roll {
  animation: rollIn 2s ease-out forwards;
}

.animate-text {
  animation: textReveal 2s 0.5s ease-out forwards; /* Start 0.5s after logo */
}
/* KILL UNDERLINE - TARGET ::after PSEUDO */
.animate-text a {
    text-decoration: none !important;
}

.animate-text a::after,
.animate-text a:hover::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
}

.animate-text a:hover img {
    border-bottom: none !important;
}
#footer .astro a {
    color: #ffffff;
    font-size: 50px;
}

#footer ul li a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    font-size: 14px;
}
#footer h4 {
    font-size: 18px;
    text-transform: uppercase;
}

#footer {
    background-image: url(https://d3kfjvhh435dey.cloudfront.net/_laravel/images/uploads/2023/12/ftbk.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: bottom;
    background-size: 40%;
    width: 100%;
    background-color: #0E0E0E;
    color: #ffffff;
}
/* Media Queries */
@media (max-width: 768px) {
    body {
        background-size: 90%;
    }

    .card-img-top,
    .card-img {
        height: 200px;
    }

    .modal-dialog {
        max-width: 95vw;
        margin: 1rem;
    }

    .carousel-inner img {
        max-height: 60vh;
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 14px;
    }
}

/* Additional Styles for Consistency */
.container {
    max-width: 1200px;
}

.bg-dark {
    background-color: #121212 !important;
}

.text-light {
    color: #f8f9fa !important;
}

.form-label {
    color: #f8f9fa;
}

select.form-select, input.form-control {
    background-color: #212529;
    color: #f8f9fa;
    border-color: #495057;
}