*,
*::before,
*::after {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  display: none;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 100%;
  font-family: Inter, system-ui, sans-serif;
}

body.wandr-app  {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: contain; /* Added this for pull-to-refresh */
  padding: 0;
  margin: 0;
}

.login-page, .signup-page {
  padding: 1em;
}

.login-field-email, .login-field-password {
  width: 100%;
  padding: 1em;
  font-size: 1rem;
}

.login-btn, .signup-btn {
  font-size: 1.25rem;
  padding: .5em 1em;
  background-color: #900;
  border: 0;
  color: #fff;
}



.wandr-app .wrapper {
    min-height: 100vh;
    margin: 0; 
    padding: 0;
  
  flex-direction: column;
}

.wandr-app a, button {
  cursor: pointer;
}

.wandr-app nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1em 1em .5em;
  border-bottom: 1px solid #ccc;
  background-color: #F4F3EF;
}


.wandr-app nav a {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.wandr-app .logo-style {
  display: block;
  height: 40px;
  width: auto;
}

.wandr-app .profile-page-avatar {
  display: block;
  width: 100%;
  padding: .5em;
}

.wandr-app .profile-page-avatar img {
  margin: 0;
}

.wandr-app .profile-bio {
  margin: .5em;
}

.wandr-app header {
  max-width: 100%;
  display: flex;
}

.wandr-app header h1 { 
  width: 50%;
}

.wandr-app header .follow_button {
  width: 50%;
  text-align: right;
  margin: .5em;
}

.wandr-app .copy_raw_form_field {
  width: 100%;
  margin: .25em;
  outline: none;
}

.wandr-app .post-form {
  height: 100%;
}

.wandr-app .upload-status {
  display: none;
}

.wandr-app .media-strip {
  display: flex;
  flex-direction: row;
  gap: 12px;

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

  padding:0;
  scroll-snap-type: x mandatory;

  -webkit-overflow-scrolling: touch;
}

.wandr-app .media-card {
  position: relative;
  flex: 0 0 85vw;
  max-width: 360px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .wandr-app .media-card{
    flex: 0 0 260px; /* desktop becomes card layout again */
  }

  .wandr-app .logo-style {
    
    height: 60px;
    
  }
}

.wandr-app .media-card img {
  width: 100%;
  display: block;
  border-radius: 8px;
  margin-right: -10px;
}

.wandr-app .media-remove {
  position: absolute;
  top: 8px;
  right: 8px;

  width: 32px;
  height: 32px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);
  color: black;

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

  cursor: pointer;
  backdrop-filter: blur(4px);
}


.wandr-app .post-media-strip {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: flex-start;

  scroll-snap-type: x mandatory;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
  transition: height 300ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
  border: 0 solid;
    margin: 0;
    padding: 0;
}

.wandr-app .post-media-strip::-webkit-scrollbar {
  display: none;
}

.wandr-app .post-slide {
  position: relative;

  flex: 0 0 100%;

  scroll-snap-align: start;

  background: #fff;
  transform: translateZ(0);
  border: 0 solid;
    margin: 0;
    padding: 0;
}

.wandr-app .post-image-wrap {
  position:relative;
  overflow:hidden;
  border: 0 solid;
    margin: 0;
    padding: 0;
}

.wandr-app .post-image-wrap img {
  width:100%;
  display:block;
  max-height: 85vh;
  object-fit: contain;
  filter: contrast(102%) brightness(102%) saturate(104%);
  border: 0 solid;
    margin: 0;
    padding: 0;
}
.wandr-app .post-overlay {
  position: relative;
  top: 1.25em;
  margin-left: .5em;
  width: 70%;
  padding: 0 0 .5em;
  display: flex;
  align-items: center;
  z-index: 1;
}

.wandr-app .post-overlay img {
  margin: 0 .5em 0 .5em;
  padding: 0;
  border: 0;
  outline: .15em solid #fff;
}

.wandr-app .post-overlay a {
  color: #333;
  text-decoration: none;
}

.wandr-app .featured-badge {
  color: #666;
  font-weight: 600;
  font-size: 1em;
  position: relative;
  top: 1.25em;
  margin-right: 1em;
  width: 30%;
  padding: .5em 0;
  display: flex;
  align-items: center;
  z-index: 1;
  justify-content: flex-end;
}

.wandr-app .featured-via {
  color: #333;
}
.wandr-app .featured-via a {
  color: #900;
}
.wandr-app .post-caption {
  padding: .5em 1em;
}
.wandr-app .post-caption a {
  color: #00c;
}
.wandr-app .featured_post_toggle {
  margin-left: .5em;
}

.wandr-app .post-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: .5em 0 1em;
}

.wandr-app .post-dots .dot {
  background-color: white !important;
}

.wandr-app .post-dots .dot.active {
  background-color: #333 !important;
  outline: 2px solid #333;
}

.wandr-app .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
  display: inline-block;
  outline: 1px solid #333;
}

.wandr-app .like, .post-metadata {
  display: block;
  padding: 0 1em .25em;
  text-align: right;
  color: #999;
  font-size: .8em;
}

.wandr-app .like {
  font-style: italic;
}

 

.wandr-app nav.profile-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
}

.wandr-app nav.profile-header a {
  flex: 0 0 auto; /* only as wide as content */
}

.wandr-app nav.profile-header h1 {
  flex: 1;         /* take remaining space */
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 1.5em;
}



/* create post button */
.wandr-app .create-post-button, .wandr-app  .submit-post-button {
  width: 90%;
  margin: 1em;

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

  padding: 1em 2em;

  border: none;
  border-radius: 12px;

  background: #333;
  color: white;

  font-size: 1.2rem;
  font-weight: 600;

  cursor: pointer;

  
}

.wandr-app .create-post-button {
    transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.2s ease;

    animation: create-post-pulse 4s 3;
}

.wandr-app .create-post-button:hover {
  transform: scale(1.03);
}

.wandr-app .create-post-button:active {
  transform: scale(0.97);
}

.wandr-app .create-post-button:focus-visible {
  outline: 2px solid black;
  outline-offset: 3px;
}


@keyframes create-post-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0,0,0,0.22);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(0,0,0,0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
  }
}

/* post submit button */
.wandr-app .post-submit-wrap {
  opacity: 0;

  pointer-events: none;

  transform: translateY(8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.wandr-app .post-submit-wrap.visible {
  opacity: 1;

  pointer-events: auto;

  transform: translateY(0);
}





/* USER SEARCH */

@keyframes slide-down {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 1000;
  padding: 16px;
  border-bottom: 1px solid #ddd;
}

.animate-slide-down {
  animation: slide-down 0.2s ease-out;
}

.hidden {
  display: none;
}



/* PLACE SEARCH */
.wandr-app .place-search-box {
  position: relative;
  margin: 1.5em 1em;
}

.wandr-app .place-search-box input {
  width: 95%;
  padding: .5em;
  font-size: 1rem;
}
.wandr-app .place-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;

  z-index: 1000;

  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;

  box-shadow: 0 12px 30px rgba(0,0,0,0.12);

  overflow: hidden;
}

.wandr-app .place-results.hidden {
  display: none;
}

.wandr-app .place-result-row {
  display: block;
  width: 100%;
  text-align: left;

  padding: 12px 14px;

  border: none;
  background: white;

  cursor: pointer;
}

.wandr-app .place-result-row:hover {
  background: #f3f4f6;
}

.wandr-app .place-result-name {
  font-weight: 600;
}

.wandr-app .place-result-context {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.footer-nav {
  z-index: 1000;
  padding-bottom: 1.25em;
  bottom: 0;               /* Pins it to the viewport bottom edge */
  left: 0;
  width: 100%;
  position: sticky;
  display: flex;
  
}

.footer-nav a {
  color: #333;
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
  padding: .5em;
}

.comment {
  margin-bottom: 1em;
}

.comment-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;

  padding: 10px;
  
}

textarea.comment-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #efefef;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  margin-left: 1.2em;

  field-sizing: content;
  min-height: 3lh; /* Sets a baseline height of 3 lines */
  max-height: 6lh; /* Optional: adds a scrollbar after 10 lines */
  resize: none;
}

.comment-input:focus {
  border-color: #999;
}

.comment-submit {
  width: 24px;
  height: 24px;

  border: none;
  border-radius: 50%;

  background: #111;
  color: white;

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

  cursor: pointer;

  font-size: 16px;
  line-height: 1;
}

.comment-submit:hover {
  background: #333;
}

.comment-submit:active {
  transform: scale(0.95);
}

.message-comment, .comment-text {
  font-size: 1rem;
}

.comment-body {
  margin-bottom: 1em;
}










.wandr-app .user-search-wrapper {
  display: flex;
  align-items: center;
  border: 0 solid;
  margin: 0;
  padding: 0;
  tab-size: 4;
  line-height: 1.5;
}

.wandr-app .user-search-input {
  padding: calc(var(--spacing) * 2);
  border-style: var(--tw-border-style);
  border-width: 1px;
  width: 100%;
  color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
}

.user-action-btn {
  --color-blue-500: oklch(62.3% .214 259.815);
    --color-white: #fff;
    --spacing: .25rem;
    --default-font-family: var(--font-sans);
  color: var(--color-white);
  padding-block: calc(var(--spacing) * 2);
  background-color: var(--color-blue-500);
  border-radius: .25rem;
  border: 0 solid;
    margin: 0;
    padding: 0;
    
}


.feed-container {
  --container-xl: 36rem;
  max-width: var(--container-xl);
  margin-inline: auto;
}

.btn-search {
  position: absolute;
  top: 1.5rem;
  right: 4rem;
  border: 0 solid;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.button_to {
  border: 0 solid;
    margin: 0;
    padding: 0;
}

turbo-frame {
  border: 0 solid;
    margin: 0;
    padding: 0;
}


.hamburger {
  position: relative;
  z-index: 1000;
}

.hamburger summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0 0.5rem 0.25rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
}

.hamburger summary::-webkit-details-marker {
  display: none;
}

.hamburger-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.hamburger-link,
.hamburger-button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.hamburger-link:hover,
.hamburger-button:hover {
  background: #f5f5f5;
}

.hamburger-button form {
  margin: 0;
}






/* THE NEW STYLE */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: #f0efed;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wandr-app-test a, button {
  cursor: pointer;
}

.wandr-app-test nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1em 1em .5em;
  border-bottom: 1px solid #ccc;
  background-color: #F4F3EF;
}


.wandr-app-test nav a {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.wandr-app-test .logo-style {
  display: block;
  height: 40px;
  width: auto;
}

@media (min-width: 768px) {

  .wandr-app-test .logo-style {
    
    height: 60px;
    
  }
}

/* USER SEARCH */

@keyframes slide-down {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 1000;
  padding: 1.1em 1em;
  border-bottom: 1px solid #ddd;
}

.search-panel input {
  font-size: 1rem;
  width: 85%;
  padding: .25em .5em;
}

.animate-slide-down {
  animation: slide-down 0.2s ease-out;
}

.hidden {
  display: none;
}





/* ── Feed ─────────────────────────────────────────────────── */
.feed { max-width: 640px; margin: 0 auto; background: #fff; min-height: 100svh; }

/* ── Top bar ──────────────────────────────────────────────── */
.feed-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff; border-bottom: 1px solid #f0f0f0;
  padding: 14px 20px; text-align: center;
}
.feed-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; font-weight: 400; letter-spacing: 0.06em; color: #111;
}

/* ── Post separation ──────────────────────────────────────── */
.post + .post { border-top: 1px solid #ebebeb; margin-top: 28px; }
.post { margin-bottom: 6svh;}
/* ── Location ─────────────────────────────────────────────── */
.post-location { padding: 18px 20px 14px; }
.location-link {
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none; color: #aaa; transition: opacity 0.15s ease;
}
.location-link:hover { opacity: 0.6; }
.location-link span {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
}

/* ── Carousel ─────────────────────────────────────────────── */
.carousel {
  position: relative; width: 100%; overflow: hidden; background: #000;
  transition: height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y; /* vertical = native page scroll; horizontal = JS handles */
  user-select: none; cursor: grab;
}
.carousel:active { cursor: grabbing; }
.carousel-track { display: flex; height: 100%; will-change: transform; }
.carousel-slide {
  flex: 0 0 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; background: #000;
}
.carousel-slide img, .carousel-slide picture {
  width: 100%; height: 100%; object-fit: contain;
  display: block; pointer-events: none; -webkit-user-drag: none;
}

/* ── Slide indicators ─────────────────────────────────────── */
.indicators { display: flex; gap: 3px; margin-top: 8px; }
.indicators[hidden] { display: none; }
.indicator { flex: 1; height: 2px; background: #e0e0e0; transition: background-color 0.25s ease; }
.indicator.active { background: #222; }

/* ── Meta row ─────────────────────────────────────────────── */
.post-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 10px;
}
.post-byline { display: flex; align-items: center; gap: 7px; font-weight: 500;}
.avatar-link { display: block; flex-shrink: 0; }
.avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.username-link { font-weight: 500; color: #111; text-decoration: none; }
.username-link:hover { text-decoration: underline; }
.meta-sep { color: #ccc; }
.post-time { color: #999; }

/* ── Action buttons ───────────────────────────────────────── */
.post-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: none; background: transparent;
  border-radius: 50%; cursor: pointer; transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: #f5f5f5; }

/* Heart icon transitions between outline and filled-red */
.like-btn .heart { fill: none; stroke: #777; transition: fill 0.15s ease, stroke 0.15s ease; }
.like-btn.liked .heart { fill: #e03535; stroke: #e03535; }

@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.32); }
  100% { transform: scale(1); }
}
.like-btn.burst { animation: heart-pop 0.32s ease forwards; }
.like-btn {
  color: #777;
}
.like-btn.liked {
  color: #e03535;
}

/* ── Dropdown menu ────────────────────────────────────────── */
.menu-wrap { position: relative; }
.menu-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid #ebebeb; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  min-width: 172px; overflow: hidden; z-index: 20;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px) scale(0.96); transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.menu-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 14px; border: none; background: transparent;
  font-size: 13px; font-family: system-ui, sans-serif; color: #111;
  cursor: pointer; text-align: left; transition: background 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.menu-item:hover { background: #f7f7f7; }
.menu-item.destructive { color: #d4183d; }
.menu-divider { height: 1px; background: #f0f0f0; margin: 3px 0; }

/* ── Caption ──────────────────────────────────────────────── */
.caption-html {display: none;}
.post-caption { padding: 0 20px 12px; }
.caption-text { line-height: 1.55; color: #222; }
.more-btn {
  border: none; background: transparent;
  font-size: 13px; font-family: system-ui, sans-serif;
  color: #bbb; cursor: pointer; padding: 0;
}
.more-btn:hover { color: #888; }

/* ── Comments ─────────────────────────────────────────────── */
.post-comments { padding: 0 20px 24px; }
.view-all-link {
  display: block; font-size: 12px; color: #aaa;
  text-decoration: none; margin-bottom: 10px; transition: color 0.15s ease;
}
.view-all-link:hover { color: #555; }
.comment { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 9px; }
.comment:last-child { margin-bottom: 0; }
.comment-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; margin-top: 1px;
}
.comment-body { line-height: 1.45; }
.comment-username {
  font-weight: 500; color: #111; text-decoration: none; margin-right: 5px;
}
.comment-username:hover { text-decoration: underline; }
.comment-text { color: #333; }
.comment-input {
  background-color: #fefefe;
  field-sizing: content;
  min-height: 2em;
  width: 93%;
  resize: none;         /* Removes the resize handle */
  border: none;         /* Removes the default border */
  outline: none;        /* Removes the focus ring */
}

.comment-submit {opacity: 50%;}

