/* ------------------------------
   Base / scroll / background
------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: transparent;
}

body {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  background: transparent;
  position: relative;
  z-index: 0;
  font-family: "Open Sans", Arial, sans-serif;
}

/* ------------------------------
   Reduced motion
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
    transition-duration: 0.001ms;
  }
}

/* =========================================================
   HikinPedia Greece - extraCSS5 clean
   Ενιαίο CSS χωρίς override layers.
   Κρατάει τα υπάρχοντα IDs/classes/JS hooks.
   ========================================================= */

/* ------------------------------
   Design tokens
------------------------------ */
:root {
  --hp-green: #015c4b;
  --hp-green-2: #0d7660;
  --hp-blue: #006fa8;
  --hp-text: #18332d;
  --hp-muted: rgba(24, 51, 45, 0.62);
  --hp-panel: rgba(255, 255, 255, 0.95);
  --hp-panel-strong: rgba(255, 255, 255, 0.98);
  --hp-line: rgba(1, 92, 75, 0.12);
  --hp-soft: rgba(1, 92, 75, 0.08);
  --hp-shadow: 0 5px 18px rgba(18, 48, 35, 0.15);
  --hp-shadow-soft: 0 3px 12px rgba(18, 48, 35, 0.11);
  --hp-shadow-strong: 0 10px 28px rgba(18, 48, 35, 0.18);
  --hp-radius: 14px;
  --hp-radius-pill: 999px;
}


.fixed-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  pointer-events: none;
  background-image: url("IMG_20200823_095102_12.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: paint;
  min-height: 100dvh;
  z-index: -10;
  pointer-events: none;

  
}



h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-size: 25px;
    color: white;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}


#blink-btn{
    background:#015c4b;
    border-radius:50%;
    padding:0px;
    border:none;
    cursor:pointer;
    color:white;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
}

@media (max-width:768px){

    .fixed-bg {
         background-image: url("home-hero-mobile.6c7f7cd3cb0c.webp");
    height: 100svh;
    min-height: 100dvh;
    }



}



.fixed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.03) 42%,
    rgba(0, 0, 0, 0.12)
  );
}



button,
a {
  -webkit-tap-highlight-color: rgba(1, 92, 75, 0.18);
}

button {
  cursor: pointer;
}

.mobile-break {
  display: none;
}



/* ------------------------------
   Shared inputs
------------------------------ */

input[type="text"],
#searchInput,
#address,
.quicksearch-input {
  width: 300px;
  max-width: 93vw;
  min-width: 0;
  padding: 10px 42px 10px 14px;
  border-radius: var(--hp-radius-pill);
  border: 1px solid rgba(1, 92, 75, 0.14);
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--hp-text);
  caret-color: var(--hp-green);
  box-shadow: var(--hp-shadow-soft);
  font: 11.5px Arial, sans-serif;
  box-sizing: border-box;
  margin-bottom: 6px;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.input-with-button input {
  width: 100%;
  text-align: left;
}

input[type="text"]::placeholder,
#searchInput::placeholder,
#address::placeholder,
.quicksearch-input::placeholder {
  color: var(--hp-muted);
}

input[type="text"]:focus,
#searchInput:focus,
#address:focus,
.quicksearch-input:focus {
  border-color: rgba(1, 92, 75, 0.42);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(1, 92, 75, 0.10),
    0 8px 20px rgba(0, 0, 0, 0.12);
}


/* ------------------------------
   Search selector
------------------------------ */
#searchSelector {
  gap: 6px;
  height: 50px;
  max-width: 323px;
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  color: #014d42;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: 50px;
  padding: 2ch;
  font-family: 'Segoe UI', 'Georgia', serif;
  width: 100%;
  margin: 10px auto;
  font-size: 16px;
  box-sizing: border-box;
}



@media (max-width:768px){

    #schedule-form-container {
        width:65vw;
        max-width:65vw;
        padding:12px;
    }

}


#schedule-form label {
    display:block;
    margin-bottom:8px;
    font-size:14px;
    color:#555;
}


.container {
  max-width: 400px;      /* keeps it narrow */
  margin: 0px auto;     /* centers horizontally */
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  color: white;
  box-sizing: border-box;
  
}


.container .quicksearch-container,
.container .input-with-button,
.container #address,
.container #searchInput {
  margin-left: auto;
  margin-right: auto;
}

.input-with-button {
    position: relative;
    width: 300px;
}

#address {
    width: 93%;
    padding-right: 0px; /* αφήνει χώρο για το κουμπί */
    box-sizing: border-box;
}

#searchBtn2 {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    z-index: 10;
}



@media (max-width: 768px) {
#searchSelector {
  max-width: 295px;
    font-size: 13px;
}

}

@media (max-width: 400px) {
#searchSelector {
    font-size: 11px;
      max-width: 320px;
}

}


@media (max-width: 320px) {
#searchSelector {
    font-size: 10px;
}

}



#searchSelector button,
#searchSelector a {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background-color 0.2s ease;
}

#searchSelector button,
#searchSelector a[aria-label="View map"] {
  box-shadow: 0 4px 12px rgba(1, 92, 75, 0.22);
}


/* ------------------------------
   Search results / smooth internal scroll
------------------------------ */
#searchResults {
  width: min(300px, 93vw);
  max-width: 300px;
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: visible;
  background: transparent;
}

#searchResults p {
  text-align: left;
}

#resultsList,
#results {
  width: min(400px, 93vw) !important;
  max-width: 400px;
  max-height: 260px;
  margin: 10px auto 0;
  padding: 2px 6px 4px;
  color: #000;
  font-size: 16px;
  list-style-position: inside;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-gutter: stable both-edges;
  scroll-behavior: smooth;
  background: transparent;
  border-radius: var(--hp-radius);
    

}

#resultsList li,
#results li {
  display: list-item;
  color: #000;
  text-align: center;
  padding: 9px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  background: var(--hp-panel);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}


#searchResults .result {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: var(--hp-panel);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
  overflow-wrap: anywhere;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.searchResultLink {
  color: var(--hp-blue);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.searchResultLink:hover {
  color: var(--hp-green);
  opacity: 0.92;
}

#resultsList:empty,
#results:empty,
#quicksearchResults:empty,
.quicksearch-results:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  max-height: 0;
  min-height: 0;
  height: 0;
  overflow: hidden;
}

/* Smooth, discreet scrollbars */
#resultsList,
#results,
#quicksearchResults,
.quicksearch-results,
#popular-list,
#contributorsBox,
#haveGoneBox,
#favoritesBox {
  scrollbar-width: thin;
  scrollbar-color: rgba(1, 92, 75, 0.35) rgba(1, 92, 75, 0.06);
}

#resultsList::-webkit-scrollbar,
#results::-webkit-scrollbar,
#quicksearchResults::-webkit-scrollbar,
.quicksearch-results::-webkit-scrollbar,
#popular-list::-webkit-scrollbar,
#contributorsBox::-webkit-scrollbar,
#haveGoneBox::-webkit-scrollbar,
#favoritesBox::-webkit-scrollbar {
  width: 7px;
}

#resultsList::-webkit-scrollbar-track,
#results::-webkit-scrollbar-track,
#quicksearchResults::-webkit-scrollbar-track,
.quicksearch-results::-webkit-scrollbar-track,
#popular-list::-webkit-scrollbar-track,
#contributorsBox::-webkit-scrollbar-track,
#haveGoneBox::-webkit-scrollbar-track,
#favoritesBox::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--hp-radius-pill);
}

#resultsList::-webkit-scrollbar-thumb,
#results::-webkit-scrollbar-thumb,
#quicksearchResults::-webkit-scrollbar-thumb,
.quicksearch-results::-webkit-scrollbar-thumb,
#popular-list::-webkit-scrollbar-thumb,
#contributorsBox::-webkit-scrollbar-thumb,
#haveGoneBox::-webkit-scrollbar-thumb,
#favoritesBox::-webkit-scrollbar-thumb {
  background: rgba(1, 92, 75, 0.32);
  border-radius: var(--hp-radius-pill);
}


#schedule-form-container {

    display:none;
    position:fixed;
    top:58%;
    left:50%;
    transform:translate(-50%,-50%);
    background:rgb(143, 192, 129);
    width:420px;
    padding: 20px;
    border-radius:18px;
    box-shadow:0 15px 40px rgba(0,0,0,0.25);
    z-index:9999;
}


#schedule-form input {
    width:100%;
    padding:12px;
    margin-bottom:12px;
    border-radius:10px;
    border:1px solid #ebe7e7;
    font-size:16px;
}

#schedule-form {
   background:rgb(230, 235, 229);
    padding: 5px;
}


#schedule-form button {
    width:100%;
    padding:13px;
    background:#2d6a4f;
    color:white;
    border:none;
    border-radius:12px;
    font-size:17px;
    cursor:pointer;
}


#schedule-form button:hover {
    opacity:0.85;
}


#schedule-response {
    margin-top:15px;
    font-weight:bold;
}


#next-events {
    display:flex;
    gap:12px;

    flex-direction:row;
    flex-wrap:nowrap;

    justify-content:flex-start;

    width:60%;
    margin:4px auto 0;

    overflow-x:auto;
    overflow-y:hidden;

    padding:10px;

    border-radius:20px;
}

/* Κάθε μικρό κουτάκι */

.event-card {
    width:160px;
    background:white;
    padding:6px;
    padding-bottom:8px;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(0,0,0,0.12);
    font-size:12px;
    height:auto;
    min-height:0;
    align-self:flex-start;
}


.event-card h3 {
    font-size:12px;
    margin:0 0 8px 0;
}



.event-card p {
    margin:5px 0;
}



.event-card a {
    display:inline-block;
    margin-top:8px;
    padding:4px 8px;
    background:#329aba;
    color:white;
    border-radius:8px;
    text-decoration:none;
    font-size:12px;
    line-height:1;
}


/* ================= MOBILE ================= */


@media(max-width:768px){


#next-events{

    position: fixed;
    bottom: 20px;

    left: 55%;
    transform: translateX(-50%);

    width: 68%;
    max-width: 100vw;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    overflow-x: auto;
    overflow-y: hidden;

    gap: 10px;

    padding-left: 1px;
    padding-right: 1px;

    justify-content: flex-start !important;

    -webkit-overflow-scrolling: touch;
}


.event-card{
    flex:0 0 150px;
    width:130px;
    min-width:130px;

    height:auto;
    min-height:0;

    padding:5px;
    padding-bottom:7px;

    border-radius:12px;
    align-self:flex-start;
}



.event-card h3{
    font-size:12px;
}

.event-card,
.event-card h3,
.event-card p,
.event-card a{
    white-space:normal;
    overflow-wrap:break-word;
    word-break:break-word;
}



#locationOutput {
    position: fixed;
    top: 88%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;

}

}



.event-label {
    display:inline-block;
    background:#08a10d;
    color:white;
    padding:3px 8px;
    border-radius:20px;
    font-size:10px;
    margin-bottom:6px;
}


@media (hover: hover) and (pointer: fine) {
  .input-with-button button:hover {
    background: rgba(1, 92, 75, 0.08);
  }

  .input-with-button button:hover svg,
  #searchSelector button:hover svg,
  #searchSelector a:hover svg {
    transform: scale(1.08);
    opacity: 0.92;
  }

  .quicksearch-item:hover,
  #searchResults .result:hover,
  #resultsList li:hover,
  #results li:hover {
    transform: translateY(-1px);
    box-shadow: var(--hp-shadow);
  }

  #popular-list li:hover,
  #contributorsBox li:hover {
    background: var(--hp-soft);
  }


  #toggleTop10:hover,
  .fixed-left:hover,
  #openHaveGone:hover,
  #openFavorites:hover,
  #locationBtn:hover,
  #compassBtn:hover {
    transform: translateY(-50%) scale(1.02);
  }
}


#hikinpedia-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}


/* ------------------------------
   Search mode visibility
------------------------------ */
.searchbox,
.container,
.searchcontainer {
  display: none;
}

.searchbox.visible,
.container.visible,
.searchcontainer.visible,
.visible {
  display: block;
}


/* ------------------------------
   Quick search
------------------------------ */
.quicksearch-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

.quicksearch-wrapper {
  position: relative;
  width: 300px;
  max-width: 90%;
}

.quicksearch-input {
  width: 100%;
  height: 55px;
  padding: 12px 45px 12px 16px;
  font-size: 14px;
}

.quicksearch-input::placeholder {
  font-size: 13.5px;
}

.quicksearch-button {
  position: absolute;
  right: 2px;
  top: 50%;
  font-size: 15px;
  transform: translateY(-55%);
  border: 0;
  background: transparent;
  color: var(--hp-green);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.quicksearch-results,
#quicksearchResults {
  margin-top: 10px;
  text-align: center;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scroll-behavior: smooth;
}

.quicksearch-item {
  width: 330px;
  max-width: 90%;
  padding: 15px;
  margin: 10px auto;
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-line);
  background: var(--hp-panel);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
  overflow-wrap: anywhere;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.quicksearch-link {
  color: #333;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.quicksearch-link:hover {
  color: var(--hp-green);
}

.quicksearch-empty {
  width: 100%;
  color: #fff;
  font-size: 16px;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.48);
}

/* =====================================
   SMALL SCREENS - GLOBAL FONT REDUCTION
   ===================================== */

@media (max-height: 700px) and (max-width: 430px)  {

  body {
    font-size: 14px;
  }

  h1 {
    font-size: calc(25px - 5px);
  }

  h2 {
    font-size: calc(18px - 5px);
  }

  p,
  li,
  a,
  button,
  input,
  textarea,
  label,
  td,
  th {
    font-size: inherit;
  }


  input::placeholder {
  font-size: calc(1em - 1px);
}


    #sosBtn {
    bottom: 125px;
  }

    /* Κατεβάζει λίγο το schedule */
  .schedule,
  #schedule {
    margin-top: 45px;
  }

  .quicksearch-input::placeholder {
    font-size: calc(1em - 0.3px) !important;
}


    #searchSelector {
        width: 70vw;
    }


.quicksearch-container {
    width: 90vw;
    max-width: 300px;
    margin: 0px auto;
    box-sizing: border-box;
}

.quicksearch-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.quicksearch-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.quicksearch-button {
    flex-shrink: 0;
}


  #submission-form input {
    width: 50vw;
    max-width: 300px;
    box-sizing: border-box;
  }

  #submission-form {
    text-align: center;
  }



}


#toggleEventsBtn {
  display:block;
  position:fixed;
  left:2px;
  bottom:153px;
  padding:6px 9px;
  border-radius:20px;
  border:none;
  font-size:14px;
  background-color:#006fa8;
  cursor:pointer;
}

body:not(.events-open) #next-events { display:none !important; }
body.submission-open #toggleEventsBtn { display:none !important; }



@media (max-width: 430px) and (max-height: 850px) {

  #toggleEventsBtn {
   display:block;
  position:fixed;
  left: 2px;
  bottom: 153px;
  padding:6px 9px;
  border-radius:20px;
  border:none;
  font-size:14px;
    background-color: #006fa8;
  }


  #next-events {
    display:none;
  }


}

@media (min-width: 769px) {
  #compassBtn,
  #compass {
    display: none !important;
  }
}


@media (min-width: 600px) {
  #locationBtn,
  #locationOutput {
    display: none !important;
  }
}


/* Κρυφό από προεπιλογή */
#sosBtn {
  display: none;

  position: fixed;
  bottom: 128px;
  left: 4px;

  background: transparent;
  border: none;
  padding: 0;

  align-items: center;
  justify-content: center;

  font-size: 16px;
  cursor: pointer;
}

/* Εμφάνιση μόνο σε κινητά */
@media (max-width: 768px) {
  #sosBtn {
    display: flex;
  }
}


@media (min-width: 600px) {
  #openFavorites,
  #favoritesBox {
    display: none !important;
  }
}


#haveGoneBox,
#favoritesBox {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  transform: none !important;
  filter: none !important;
  opacity: 1 !important;

  will-change: auto !important;
}


#openHaveGone {
    display: none !important;
}

/* μόνο mobile */
@media (max-width: 600px) {
    #openHaveGone {
        display: block !important; /* ή flex αν θες */
    }
}


@media (max-width: 768px) {
  body {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .mobile-break {
    display: inline;
  }

  button[onclick^="selectSearch"],
  a[aria-label="View map"] {
    width: 37px;
    height: 37px;
  }


  #quicksearchResults,
  .quicksearch-results {
    max-height: min(280px, 45svh);
  }

  #copyright {
    left: auto;
    right: 10px;
    transform: none;
    text-align: right;
  }
}

@media (max-width: 600px) {
  #toggleTop10 {
    top: 88.5%;
    left: 4px;
    width: 60px;
    padding: 3.5px;
    font-size: 8px;
  }

  .fixed-left {
    top: 84%;
    left: 4px;
    width: 60px;
    padding: 1px;
    font-size: 8px;
  }

  #popular-list {
    left: 0;
    width: 70%;
    top: 14%;
  }

  #contributorsBox {
    left: 0;
    width: 70%;
    top: 14%;
    border-radius: 20px 0 0 20px;
  }

  #haveGoneBox,
  #favoritesBox {
    width: 70%;
    top: 35%;
    border-radius: 20px 0 0 20px;
  }

  #openHaveGone {
    top: 85%;
    right: 4px;
  }

  

  #locationBtn {
    top: 89%;
    right: 4px;
  }

  #compassBtn {
    top: 93%;
    right: 4px;
  }

  #openFavorites {
    top: 81%;
    right: 4px;
  }

  .quicksearch-input {
    min-height: 52px;
  }

  .quicksearch-item {
    width: 280px;
    max-width: 90%;
    padding: 15px;
    margin: 10px auto;
  }

  .quicksearch-link {
    font-size: 12px;
  }

  #resultsList li,
  #results li {
    margin-bottom: 6px;
  }

  .fb-float {
    left: 5px;
    bottom: 34px;
    margin: 0;
    transform: none;
    z-index: 10000;
  }
}


#compass {
  top: 80%;
  width: 80px;
  height: 80px;
  padding: 3px;
  display: flex;
  justify-content: center;
  font-size: 100px;
  transition: transform 0.1s linear;
}


#haveGoneBox,
#favoritesBox {
  right: 0;
  top: 35%;
  width: 70%;
  padding-bottom: 10px;
  border-radius: 20px 0 0 20px;
}

#haveGoneBox h4,
#favoritesBox h4,
#popular-list h4,
#contributorsBox h3 {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 10px 0 0.5rem;
  padding: 3px 8px;
  color: var(--hp-text);
  font-size: 14px;
  letter-spacing: 0.2px;
}

/* The home navigation has no separator line underneath. */
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}
#popular-list li, #contributorsBox li, #favoritesBox li, #haveGoneBox li,
#popular-list li a, #contributorsBox li a, #favoritesBox li a, #haveGoneBox li a {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: normal;
  color: #006fa8;
}
.navigation { box-shadow: none; border-color: transparent; }
@media (max-width: 1100px) {
  #weather { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 768px) {
  #weather {
    left: 6px;
    right: auto;
    bottom: calc(9px + 1lh + env(safe-area-inset-bottom, 0px));
  }
  #datetime {
    left: 6px;
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    margin: 0;
  }
  #weather, #datetime {
    padding-block: 0;
    box-sizing: border-box;
    max-width: calc(100vw - 180px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* ------------------------------
   Panels / side lists
------------------------------ */
#popular-list,
#contributorsBox,
#haveGoneBox,
#favoritesBox {
  position: fixed;
  max-height: 70vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scroll-behavior: smooth;
  background: var(--hp-panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--hp-shadow-strong);
  pointer-events: auto;
  z-index: 999;
  text-align: center;
}

#popular-list {
  left: 0;
  top: 20%;
  width: 300px;
  border-radius: 12px 0 0 12px;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

#popular-list.active {
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
}

#popular-list ul,
#contributorsBox ul {
  list-style: none;
  padding: 8px 10px 10px;
  margin: 0;
}

#popular-list li,
#contributorsBox li {
  margin: 0.5rem 0;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--hp-text);
  font-size: 12px;
  font-weight: 600;
  transition:
    background-color 0.22s ease,
    transform 0.22s ease;
    color: #006fa8;
}

#popular-list a,
#haveGoneBox a,
#favoritesBox a {
  display: inline-block;
  color: var(--hp-blue);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  text-wrap: balance;
  transition: color 0.2s ease, opacity 0.2s ease;
}

#popular-list a:hover,
#haveGoneBox a:hover,
#favoritesBox a:hover {
  color: var(--hp-green);
  opacity: 0.92;
}


#contributorsBox {
  left: 0;
  top: 20%;
  width: 300px;
  padding-top: 5px;
  border-radius: 20px 0 0 20px;
}

#contributorsBox li:first-child {
  margin-top: 0;
}

#contributorsBox li:hover {
  text-decoration: underline;
}



@media (max-width: 768px) {
  #contributorsBtn {
    display: block;
  }
}

/* ------------------------------
   Have gone / favorites
------------------------------ */
.havegone-check {
  margin-left: 5px;
  cursor: pointer;
  font-size: 1em;
  color: #28a745;
  transition: transform 0.2s ease, color 0.2s ease;
}

.havegone-check:hover {
  transform: scale(1.2);
  color: #1e7e34;
}

#haveGoneBox, #favoritesBox {
  position: fixed;
  top: 25%;
  right: 0;

  max-height: calc(100vh - 35% - 10px);
  overflow-x: hidden;
  overflow-y: auto;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;

  box-sizing: border-box;
}


/* =========================================================
   KEYBOARD - ίδιο οπτικό style με searchSelector
   ========================================================= */

#keyboard-btn {
  height: 42px;
  width: 42px;

  background: #015c4b;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);

  color: white;

  display: flex;
  justify-content: center;
  align-items: center;

  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);

  border-radius: 50px;

  padding: 0;
  margin: 10px 0;

  font-family: 'Segoe UI', 'Georgia', serif;
  font-size: 16px;

  box-sizing: border-box;
  cursor: pointer;
}


/* ίδιο hover feeling */
/* Consistent proportions for the main nearby-hiking control. */
body #searchSelector { width: max-content; max-width: calc(100% - 16px); height: 3.5em; padding: .4em .65em; gap: .4em; font-size: 14px; justify-content: center; flex-wrap: nowrap; }
body #searchSelector > #nearby-description { white-space: nowrap; flex: 0 0 auto; margin: 0; }
body #searchSelector > button { font-size: inherit; flex: 0 0 auto; width: 2.6em; height: 2.6em; padding: 0; margin: 0; }
body #searchSelector #keyboard-btn { margin: 0; }
body #searchSelector > button svg { width: 1.4em; height: 1.4em; }
@media (max-width: 360px) { body #searchSelector { font-size: 13px; } }
@media (max-width: 300px) { body #searchSelector { font-size: 12px; } }


@media (hover: hover) and (pointer: fine) {
  #keyboard-btn:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
    filter: brightness(1.05);
  }
}


/* Small visual refresh: no changes to dimensions, positioning or interaction. */
#searchSelector {
  background-color: rgba(249, 252, 250, .95);
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 4px 16px rgba(15, 45, 36, .14);
}
#blink-btn, #keyboard-btn {
  background-image: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .06));
  box-shadow: 0 3px 9px rgba(15, 45, 36, .18);
}
/* IDs keep these paint overrides above the existing input rules. */
#searchInput, #address, #quicksearchInput {
  background-color: #fcfefd;
  border-color: #b8cec4;
  box-shadow: 0 3px 12px rgba(15, 45, 36, .12);
}
#searchInput::placeholder, #address::placeholder, #quicksearchInput::placeholder {
  color: #566d64;
}
#searchInput:focus, #address:focus, #quicksearchInput:focus {
  background-color: #fff;
  border-color: #21765c;
  box-shadow: 0 0 0 3px rgba(33, 118, 92, .18), 0 4px 14px rgba(15, 45, 36, .12);
}
#searchResults, #popular-list, #contributorsBox, #favoritesBox, #haveGoneBox {
  background-color: rgba(252, 254, 253, .98);
  border-color: #d5e2db;
  box-shadow: 0 8px 24px rgba(15, 45, 36, .16);
}
#searchInput:focus-visible, #address:focus-visible, #quicksearchInput:focus-visible {
  outline: 2px solid #21765c;
  outline-offset: 2px;
}

/* Refine the existing green surfaces without changing layout or interaction. */
#searchSelector {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(209, 232, 220, .3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(1, 92, 75, .06), 0 6px 20px rgba(15, 45, 36, .16);
}
#blink-btn, #keyboard-btn {
  background-image: linear-gradient(145deg, rgba(255, 255, 255, .23), rgba(0, 35, 26, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(0, 35, 26, .1), 0 5px 13px rgba(15, 45, 36, .21);
}
#searchInput, #address, #quicksearchInput {
  box-shadow: inset 0 1px 3px rgba(15, 45, 36, .05), 0 4px 13px rgba(15, 45, 36, .12);
}
#searchResults, #popular-list, #contributorsBox, #favoritesBox, #haveGoneBox {
  background-image: linear-gradient(150deg, rgba(255, 255, 255, .6), rgba(223, 238, 229, .22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 28px rgba(15, 45, 36, .16);
}

/* Match the quieter shared surfaces without altering layout. */
#searchSelector {
  background-image: linear-gradient(135deg, #fcfefc, #eaf3ed);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 14px rgba(15, 45, 36, .12);
}
#blink-btn, #keyboard-btn {
  background-image: linear-gradient(155deg, rgba(255, 255, 255, .14), rgba(0, 35, 26, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(15, 45, 36, .17);
}
#searchResults, #popular-list, #contributorsBox, #favoritesBox, #haveGoneBox {
  background-image: linear-gradient(155deg, rgba(255, 255, 255, .82), rgba(238, 246, 241, .45));
  border-color: #d4e1d9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 24px rgba(15, 45, 36, .13);
}

/* Keep the hike submission transparent and events below it on phones. */
#submission-form {
  background: transparent;
  box-shadow: none;
}
@media (max-width: 768px) {
  #next-events {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 20px auto 24px;
  }
}

/* Keep the menu behind the blur, with only the active controls and logo above. */
#ranking-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10012;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#popular-list.ranking-focus,
#contributorsBox.ranking-focus,
#favoritesBox.ranking-focus,
#haveGoneBox.ranking-focus,
#openFavorites.ranking-focus,
#openHaveGone.ranking-focus,
#toggleTop10.ranking-focus,
#contributorsBtn.ranking-focus {
  z-index: 10013;
}
body:has(#ranking-backdrop) > a:has(#mainLogo) {
  z-index: 10014 !important;
}
@media (max-width: 600px) and (max-height: 650px) {
  #toggleTop10,
  #contributorsBtn {
    top: auto;
    transform: none;
    margin: 0;
  }
  #toggleTop10 { bottom: 44px; }
  #contributorsBtn { bottom: 90px; }
}

/* Keep ranking lists above their floating controls, even on short screens. */
#popular-list,
#contributorsBox {
  top: calc(12vh + 12px);
  box-sizing: border-box;
  max-height: min(calc(60vh - 12px), calc(88vh - 162px));
  max-height: min(calc(60dvh - 12px), calc(88dvh - 162px));
}

/* Personal lists stop above their controls; JS measures the available height. */
#favoritesBox,
#haveGoneBox {
  top: 14vh;
  box-sizing: border-box;
  max-height: 66vh;
}

/* Hide footer controls while events are open at every screen size. */
body.submission-open :is(#contributorsBtn, #toggleTop10, #weather, #datetime, #copyright, .fb-float, #next-events, #toggleEventsBtn) {
  display: none !important;
}
body.events-open :is(footer, #contributorsBtn, #toggleTop10, #weather, #datetime, #copyright, .fb-float, #popular-list, #contributorsBox, #favoritesBox, #haveGoneBox) {
  display: none !important;
}
/* Keep mobile panels visible while temporarily hiding footer controls. */
/* Search handlers hide the footer immediately, before asynchronous results arrive.
   Use that same state for every floating control instead of waiting for results. */
body:has(footer[style*="display: none"]) :is(#contributorsBtn, #toggleTop10, #weather, #datetime, #copyright, .fb-float) {
  display: none !important;
}
.close-home-form { display: none; }
@media (max-width: 768px) {
  body.mobile-footer-hidden footer,
  body.mobile-footer-hidden #contributorsBtn,
  body.mobile-footer-hidden #toggleTop10,
  body.mobile-footer-hidden #weather,
  body.mobile-footer-hidden #datetime,
  body.mobile-footer-hidden #copyright,
  body.mobile-footer-hidden .fb-float { display: none !important; }
  .close-home-form { display: block; margin: 0 auto 8px; }
}

/* Stack both homepage submission options at every viewport width. */
footer { flex-direction: column; align-items: center; }
footer .other-form-open { display: none !important; }
#advertising-form { background: transparent; box-shadow: none; border: none; }
#submission-form button[type="submit"],
#advertising-form button[type="submit"] {
  font: 400 13px/1.4 Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  box-sizing: border-box;
  margin: 10px auto 5px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hp-green-2), var(--hp-green));
  color: #fff;
  box-shadow: 0 6px 18px rgba(1, 92, 75, .22);
  cursor: pointer;
}
#submission-form .close-home-form,
#advertising-form .close-home-form {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font: 400 18px/36px Arial, sans-serif;
  text-align: center;
  letter-spacing: normal;
  background: linear-gradient(180deg, var(--hp-green-2), var(--hp-green));
  color: #fff;
  box-shadow: 0 6px 18px rgba(1, 92, 75, .22);
  cursor: pointer;
}

/* Brighter cards for both homepage searches. */
#resultsList li,
#results li,
.quicksearch-item {
  background: linear-gradient(135deg, #fffbe6, #e0f5e7);
  border-color: #a5cdb0;
  box-shadow: 0 5px 16px rgba(32, 92, 57, .14);
}
@media (hover: hover) {
  #resultsList li:hover,
  #results li:hover,
  .quicksearch-item:hover {
    background: linear-gradient(135deg, #fff5cd, #cef0dd);
    border-color: #76b58b;
  }
}

/* Keep the original emoji compass, rotating its north tip (45 degrees). */
.compass-dial { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.compass-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 100px; line-height: 1; }
.compass-north { position: absolute; top: 4px; right: 4px; z-index: 1; color: #b52323; background: #fff; border-radius: 3px; padding: 1px 3px; font: bold 14px/1 Arial, sans-serif; }
.compass-heading, .compass-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.compass-unavailable { opacity: 1; }

/* Quieter surfaces, with the same controls and geometry. */
#searchSelector {
  background: #f9fbf6;
  border-color: #d5dfcd;
  box-shadow: 0 4px 16px rgba(25, 39, 31, .14);
}
#blink-btn, #keyboard-btn {
  background-image: none;
  background-color: #28624b;
  box-shadow: 0 3px 9px rgba(25, 39, 31, .16);
}
#searchInput, #address, #quicksearchInput {
  background-color: #fff;
  border-color: #bccab4;
  box-shadow: 0 3px 12px rgba(25, 39, 31, .13);
}
#searchResults, #popular-list, #contributorsBox, #favoritesBox, #haveGoneBox {
  background: #fafcf7;
  border-color: #d1ddc8;
  border-radius: 9px;
  box-shadow: 0 6px 22px rgba(25, 39, 31, .14);
}
#resultsList li, #results li, .quicksearch-item {
  background: #fdfefb;
  border-color: #d1ddc8;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(25, 39, 31, .08);
}
#resultsList li:hover, #results li:hover, .quicksearch-item:hover {
  background: #f1f6e9;
  border-color: #a5b693;
}
#contributorsBtn, #toggleTop10 {
  background: #315c49;
  border-color: rgba(232, 239, 223, .45);
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(25, 39, 31, .17);
}
/* Small surface refinements; preserve every control's geometry. */
#searchSelector, #popular-list, #contributorsBox, #favoritesBox, #haveGoneBox {
  background-color: #e5ebe3;
  border-color: #dce5df;
  box-shadow: 0 5px 18px rgba(20, 43, 34, .12);
}
#searchInput, #address, #quicksearchInput {
  border-color: #b9cbc1;
  box-shadow: 0 2px 9px rgba(20, 43, 34, .12);
}
.fixed-bg { background-color: #e6e6e6; background-blend-mode: multiply; }

/* Consistent typography and spacing across the four home lists. */
:is(#popular-list, #contributorsBox, #favoritesBox, #haveGoneBox) {
  padding: 0 0 10px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}
:is(#popular-list, #contributorsBox, #favoritesBox, #haveGoneBox) > :is(h3, h4) {
  margin: 10px 0 8px;
  padding: 3px 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.2px;
}
:is(#popular-list, #contributorsBox, #favoritesBox, #haveGoneBox) > ul {
  list-style: none;
  margin: 0;
  padding: 0 10px;
}
:is(#popular-list, #contributorsBox, #favoritesBox, #haveGoneBox) > ul > li {
  margin: 4px 0 0;
  padding: 3px 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: normal;
}
:is(#popular-list, #contributorsBox, #favoritesBox, #haveGoneBox) > ul > li:first-child {
  margin-top: 0;
}
:is(#popular-list, #contributorsBox, #favoritesBox, #haveGoneBox) > ul > li > a {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  text-wrap: wrap;
}
:is(#popular-list, #contributorsBox, #favoritesBox, #haveGoneBox) > p {
  margin: 0;
  padding: 6px 18px;
  font: inherit;
}

/* Destination heading has no shadow, including on hover. */
#home-destinations-title { box-shadow: none; text-shadow: none; transform: none; }

/* Match the other floating controls on hover. */
#contributorsBtn:hover { background: rgba(0, 95, 163, 0.90); }

/* Keep the opened compass inside short phone viewports. */
@media (max-width: 599px) and (max-height: 650px) {
  #compass {
    position: fixed;
    top: auto;
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
  }
}
/* Hide only the submission and advertising prompts while either panel is open. */
@media (max-width: 599px) {
  body:has(#locationOutput[style*="display: block"], #compass[style*="display: flex"])
  footer > p:has(#toggle-form-btn, .advertising-toggle) { display: none !important; }
}

/* Hide the home search fields only while the compass is open. */
body:has(#compass[style*="display: flex"]) :is(.quicksearch-container, #searchSelector, .searchbox, .container:has(#address)) { visibility: hidden; pointer-events: none; }

/* Same hero composition; density-appropriate copies of the original images. */
.fixed-bg{background-image:image-set(url("home-desktop-1x.881be4d2dc99.jpg") 1x,url("IMG_20200823_095102_12.jpg") 2x)}
@media(max-width:768px){.fixed-bg{background-image:image-set(url("home-mobile-1x.97a099cd20ce.webp") 1x,url("home-hero-mobile.6c7f7cd3cb0c.webp") 2x)}}
@media(min-width:2017px){.fixed-bg{background-image:url("IMG_20200823_095102_12.jpg")}}
