:root {
      --bg: #fff8ef;
      --card: #ffffff;
      --ink: #2d2a26;
      --muted: #726a63;
      --brand: #6b4b3e; /* mocha */
      --chip: #d7c3b7;
      --chip-text: #4a3b33;
      --shadow: 0 8px 24px rgba(0,0,0,0.08);
      --radius: 14px;
      --ring: 0 0 0 3px rgba(107,75,62,.15);
    }
    
    [data-theme="dark"] {
      --bg: #181715; --card:#22201e; --ink:#f3eee8; --muted:#79614d; --chip:#2b2724; --chip-text:#eaddd2; --brand:#caa588;
      --shadow: 0 8px 28px rgba(0,0,0,.35);
    }
    * { box-sizing: border-box; }
    html, body { height: 100%; }
    /* subtle repeating coffee-cup SVG as page texture */
    /* background styles */
body.polka {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12px 12px, rgba(106, 76, 63, 0.99) 0 3px, transparent 3.5px),
    radial-gradient(circle at 36px 36px, rgba(106, 76, 63, 0.99) 0 3px, transparent 3.5px);
  background-size: 48px 48px;
  background-attachment: fixed;
}

body.coffee {
  background-color: var(--bg);
  background-image: url('bg.png'); /* make sure bg.png is in the same folder */
  background-size: 520px auto;
  background-repeat: repeat;
  background-attachment: fixed;
}

/* toggle button */
.toggle-bg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f8d9b9;
  border: none;
  border-radius: 2rem;
  padding: 0.7rem 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 0.9rem;
  cursor: pointer;
  color: #5a3e2b;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s;
}

.toggle-bg:hover {
  background-color: #ffe8d1;
  transform: scale(1.05);
}
.logo-heading {
  font-family: "Poppins", "Inter", sans-serif; /* or your preferred font */
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;   /* tighter like real wordmarks */
  color: #3b2920;         /* your coffee brown */
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-heart {
  font-weight: 400;
  font-size: 0.9em;
  margin-left: 2px;
}


    body {


      margin:0;
      background-color: var(--bg);
      /* layered: pattern above the base color so it's subtle */
      background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cg%20fill='none'%20fill-rule='evenodd'%3E%3Cpath%20d='M3%2010h11v3a3%203%200%200%201-3%203H6a3%203%200%200%201-3-3v-3z'%20fill='%23654b3a'/%3E%3Cpath%20d='M15%2012h1.5a2%202%200%200%201%200%204H15'%20stroke='%23543f33'%20stroke-width='0.8'/%3E%3C/g%3E%3C/svg%3Ehttps://www.canva.com/design/DAG0CoRidg0/bBBFysbuUwnqOD4hgkc1Ew/edit?utm_content=DAG0CoRidg0&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton");
      background-repeat: repeat;
      background-size: 44px 44px; /* adjust density */
      background-position: 10px 10px;
      color: var(--ink);
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
      line-height:1.45;
    }

    /* utility class: alternate bean pattern (apply to a container) */
    .coffee-bean-pattern {
      background-color: var(--bg);
      background-image:
        radial-gradient(7px 5px at 25% 30%, rgba(106,62,35,1) 0%, rgba(106,62,35,1) 44%, transparent 46%),
        radial-gradient(7px 5px at 75% 70%, rgba(106,62,35,1) 0%, rgba(106,62,35,1) 44%, transparent 46%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.06) 0 1px, transparent 2px);
      background-size: 84px 84px;
      background-repeat: repeat;
    }
    a { color: inherit; text-decoration: none; }

    header { position: sticky; top:0; z-index:10; backdrop-filter: blur(8px); background: color-mix(in srgb, var(--bg) 92%, #fff0); border-bottom:1px solid color-mix(in srgb, var(--muted) 18%, transparent); }
    .wrap { max-width: 1160px; margin: 0 auto; padding: 18px 20px; }
    .hero { display:flex; align-items:center; justify-content:space-between; gap:16px; }
    .brand { display:flex; align-items:center; gap:12px; }
    .logo { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background: #8f735f; color: var(--brand); font-size: 22px; }
    [data-theme="dark"] .logo { background:#2c2622; }
    h1 { font-size: clamp(20px,2.2vw,28px); margin:0; }
    .sub { color: var(--muted); font-size: 13px; }

    /* Nav */
    nav ul { display:flex; gap:8px; margin:0; padding:0; list-style:none; flex-wrap:wrap; }
    .tab { display:inline-flex; align-items:center; gap:8px; padding: 8px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 13px; border:1px solid color-mix(in srgb, var(--muted) 16%, transparent); }
    .tab.active { outline: var(--ring); }
    .tab .ico { font-size: 16px; }

    .grid { display:grid; grid-template-columns: 1fr; gap: 18px; }
    @media (min-width: 980px){ .grid { grid-template-columns: 2fr 1fr; } }

    .card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border:1px solid color-mix(in srgb, var(--muted) 14%, transparent); }
    .inner { padding: 16px; }
    .card h3 { margin: 0 0 8px; }

    .row { display:flex; align-items:center; gap:10px; flex-wrap: wrap; }
    label { font-size: 13px; color: var(--muted); }
    select, input[type="text"], textarea, input[type="file"], input[type="number"] { border:1px solid #e3d8d1; border-radius: 10px; padding: 10px 12px; background:#fff; color:var(--ink); outline:none; width:100%; }
    [data-theme="dark"] select, [data-theme="dark"] input, [data-theme="dark"] textarea { background:#151412; border-color:#38322e; color:var(--ink); }
    textarea { min-height: 70px; resize: vertical; }
    .controls { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
    .col-span-2 { grid-column: span 2; }
    @media (min-width:680px){ .controls { grid-template-columns: repeat(6, 1fr); } }

    .btn { border: 0; background: var(--brand); color:#ffffff; padding:10px 14px; border-radius: 12px; cursor:pointer; box-shadow: var(--shadow); }
    .btn.ghost { background: var(--chip); color: var(--chip-text); }
    .btn.small { padding:6px 10px; border-radius: 10px; font-size: 13px; }

    .chip { display:inline-block; background: var(--chip); color: var(--chip-text); padding: 5px 10px; border-radius:999px; font-size:12px; margin: 2px; cursor:pointer; }
    .chip.active { outline: var(--ring); }
    .muted { color: var(--muted); }
    .sep { border-top: 1px dashed color-mix(in srgb, var(--muted) 25%, transparent); margin: 12px 0; }

    /* Results grid */
    .results-grid { display:grid; grid-template-columns: 1fr; gap:14px; }
    @media (min-width:720px){ .results-grid { grid-template-columns: 1fr 1fr; } }

    .shop-card { display:grid; grid-template-columns: 1fr; gap:10px; }
    .shop-head { display:flex; justify-content:space-between; align-items: baseline; gap:10px; }
    .addr { font-size:12px; color: var(--muted); }
    .actions { display:flex; gap:8px; flex-wrap:wrap; }

    .reviews { display:flex; flex-direction:column; gap:8px; }
    .rev { font-size:14px; }
    .rev .who { font-weight:600; }
    .rev-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; margin-top: 6px; }
    .rev-photo-wrap { position:relative; }
    .rev-photo-wrap .delete-photo { position:absolute; top:8px; right:8px; }

    .rightbar .card { position: sticky; top: 92px; }

    .post { display:flex; flex-direction:column; gap:8px; }
    .post img { width:100%; max-height:360px; object-fit:cover; border-radius:12px; }
    .meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
    .gallery { display:grid; grid-template-columns: repeat(2, 1fr); gap:10px; }
    @media (min-width:800px){ .gallery { grid-template-columns: repeat(3, 1fr); } }

    .footer { text-align:center; color: var(--muted); font-size:12px; padding: 28px 0 36px; }
    .pill { font-size: 12px; padding:4px 8px; border-radius:999px; background: #f1ebe7; }

    /* Router pages */
    .page { display:none; }
    .page.active { display:block; }
    .site-logo {
  height: 60px;         /* adjust to fit your header */
  width: auto;          /* keeps the correct aspect ratio */
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;            /* spacing between logo and tagline */
}
.brand {
  display: flex;
  align-items: flex-start; /* pushes to the left */
  gap: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column; /* stacks title + sub text */
  margin-left: 5px;
}

.logo {
  font-size: 48px; /* adjust as you like */
}

.sub {
  font-size: 14px;
  color: #6b5544;
  margin-top: 4px;
}

/* Stack logo above the caption */
.brand {
  display: flex;
  flex-direction: column;     /* makes logo on top, caption below */
  align-items: flex-start;    /* makes everything left aligned */
  gap: 6px;
}

/* Logo size control */
.site-logo {
  width: 450px;   /* increase or decrease as needed */
  height: auto;
  display: block;
}


/* Caption (sub text) styling */
.sub {
  font-size: 15px;
  color: #6b5544;
  max-width: 600px;  /* keeps it tidy, prevents stretching */
  line-height: 1.4;
}
/* Make the top bar go closer to the left */
.wrap.hero {
  padding-left: 0px;    /* try 0 if you want it fully flush */
}
.btn-auth {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease-in-out;
}


.btn-auth.login:hover {
  background: #f3e4d8;
}

/* Signup = solid button */
.btn-auth.signup {
  background: #a1764a;
  color: white;
  margin-left: 8px;
}

.btn-auth.signup:hover {
  background: #8d6540;
}

/* Logout button matches login styling */
.btn-auth.logout {
  border: 2px solid #a1764a;
  color: #704a2f;
}

.btn-auth.logout:hover {
  background: #f3e4d8;
}
.auth-buttons,
.btn-auth {
  display: inline-block;
}

/* Add spacing between login + signup */
.btn-auth.login {
  margin-right: 12px;   /* space to the right of the login button */
}

.btn-auth.signup {
  margin-left: 4px;     /* optional small spacing to balance */
}
.btn-auth.login {
  margin-right: 20px;
}
/* Position the auth buttons container on the right */
.auth-wrapper {
  position: absolute;
  top: 16px;
  right: 24px;
  display: flex;
  gap: 16px;        /* <-- spacing between Log in and Sign up */
  align-items: center;
  z-index: 5000;
}

/* Your buttons */
.btn-auth {
  padding: 8px 16px;
  border-radius: 22px;
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease-in-out;
  display: inline-block;
}

.btn-auth.login {
  border: 2px solid #a1764a;
  color: #704a2f;
}

.btn-auth.signup {
  background: #a1764a;
  color: white;
}
/* Nav layout: links left, icons right */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Your existing nav list */
#nav {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Container for the small icon buttons */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icon buttons */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid #c89a6b;   /* soft coffee outline */
  background: #f7e9da;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.icon-btn:hover {
  background: #f0dfcc;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.icon-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* wrapper for nav + icons */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* keep your nav list horizontal */
#nav {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* right-side icon buttons */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* small round icon buttons */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid #a1764a;
  background: #f5e5d6;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.icon-btn:hover {
  background: #ead8c5;
}

.nav-wrapper {
  margin-top: -8px;     
  padding-top: 0 !important;
}
/* Match nav buttons */
#nav .tab {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 10px 20px;
  border-radius: 999px;     
  
  background: #f5e5d6;      
  border: 2px solid #a1764a; /* brown outline */
  color: #6b4b3e;           /* coffee text */

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: 0.2s ease-in-out;
  cursor: pointer;

  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

/* Hover effect */
#nav .tab:hover {
  background: #ead8c5;         
  transform: translateY(-1px); 
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Active (selected) tab */
#nav .tab.active {
  background: #d3b08a;        
  border-color: #8d6540;     
  color: #4a3223;
}
.nav-tools {
  margin-left: 14px;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
/* community feed images */
.post-photo img,
.post-media img,
.feed-photo img {
  width: 100%;
  height: auto;           
  border-radius: 16px;
  display: block;
  max-height: 500px;      
  object-fit: contain;    
}
.post-photo img,
.post-media img,
.feed-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;    
  object-fit: cover;      
  border-radius: 16px;
  display: block;
}
/* FIX COMMUNITY FEED PHOTOS  */
.feed-photo,
.post-photo,
.community-photo,
.community-post img,
.post img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 16px;
  display: block;
  max-height: 600px; 
}
/* Community photos  */
#page-community #feed img,
#page-community #gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;         
  object-fit: cover;          
  display: block;
}
/* COMMUNITY POSTS  */


#page-community #feed > div {
  text-align: left;       
}

/* the photo itself */
#page-community #feed img {
  display: block;
  margin: 0;              
  width: 100%;
  max-width: 340px;        
  aspect-ratio: 4 / 3;     
  object-fit: cover;       
  border-radius: 16px;
  margin-bottom: 10px;     
}
/* COMMUNITY FEED — push posts fully to the left */
#page-community #feed > div {
  margin-left: 0 !important;
  padding-left: 0 !important;
}


#page-community .card .inner {
  padding-left: 18px;   
  padding-right: 18px;
}
#page-community #feed img {
  margin-left: 0 !important;
}
#page-community #feed {
  padding-left: 0 !important;
}
body {
  background-color: #967152;          

  /*  polka dots */
  background-image: radial-gradient(circle, rgb(79, 56, 43) 2px, transparent 2px);
  background-size: 32px 32px;         
  background-position: 0 0;
}
/* FINAL GLOBAL BACKGROUND (override everything above) */
body {
  background-color: #735b46 !important; 
  background-image: radial-gradient(circle, rgba(230, 204, 185, 0.925) 4px, transparent 3px) !important;
  background-size: 32px 32px !important;
  background-position: 0 0 !important;
  background-repeat: repeat !important;
}
body::before {
  content: none !important;
}

header {
  position: sticky;
  top: 0;
  z-index: 30; /* keep it above content */
}

/* decorative frame just around the header */
header::before {
  content: "";
  position: absolute;
  left: 10px;    /* how far in from the sides */
  right: 10px;
  top: 6px;     /* how far down from the top of header */
  bottom: 6px;  /* how far up from the bottom of header */
  border: 4px double #a88972;  /* cute mocha frame */
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;   /* sits behind logo + buttons */
}
