/* StreetSafari Photo — v1 styles. Mirrors the current SSAF look: black background,
   dark-grey panels, gold accents (#ffa319 / #ffe570), grey nav text. Mobile-first. */
:root { --bg:#000; --panel:#161616; --panel2:#222; --line:#333; --text:#ddd; --muted:#999;
        --gold:#ffa319; --gold2:#ffe570; --radius:6px; }
@font-face { font-family:"Ultra Vertex19"; src:url(fonts/UVF19.woff2) format("woff2"), url(fonts/UVF19.woff) format("woff"); font-display:swap; }
* { box-sizing:border-box; }
html,body { margin:0; background:var(--bg); color:var(--text);
  font:16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color:var(--gold); text-decoration:none; } a:hover { color:var(--gold2); }
h1,h2,h3 { color:#fff; line-height:1.2; margin:.2em 0 .5em; font-family:"Ultra Vertex19", Georgia, serif; font-weight:normal; }
h1 { font-size:1.8rem; } h2 { font-size:1.35rem; } h3 { font-size:1.05rem; }
img { max-width:100%; display:block; }
.wrap { max-width:1180px; margin:0 auto; padding:0 16px; }
.muted { color:var(--muted); margin:.1em 0; } .small { font-size:.85rem; }
.testbar { background:#5a3b00; color:var(--gold2); text-align:center; font-size:.8rem; padding:3px; letter-spacing:.05em; }

/* header / nav */
.site-header { background:#000; border-bottom:2px solid var(--gold); }
.header-inner { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:4px 20px; padding:8px 16px 0; } /* logo left, nav right on same row, bottom-aligned against the gold border */
.logo { display:block; line-height:0; flex:0 1 auto; max-width:100%; margin-bottom:8px; }
.logo img { height:auto; width:289px; max-width:100%; image-rendering:auto; } /* 2x original 56px header logo = 112px tall; PNG has black bg, header stays #000 */
.main-nav { display:flex; gap:4px; flex-wrap:wrap; flex:1 1 auto; justify-content:flex-end; align-items:flex-end; align-self:flex-end; }
.main-nav a { color:#ccc; padding:8px 12px; text-transform:uppercase; font-size:.85rem; letter-spacing:.06em; border-radius:var(--radius) var(--radius) 0 0; } /* tab-style: sits on the gold line */
.main-nav a:hover, .main-nav a.active { color:var(--gold2); background:var(--panel2); }
.badge { background:var(--gold); color:#000; border-radius:10px; padding:0 7px; font-size:.75rem; font-weight:bold; }
.navtoggle, .navbtn { display:none; }
@media (max-width:760px) {
  .header-inner { justify-content:flex-start; }
  .header-inner { align-items:center; }
  .logo img { width:min(100%, 289px); } /* 112px tall, scales down if narrower */
  .navbtn { width:100%; text-align:center; }
  .navbtn { display:block; color:#ccc; cursor:pointer; padding:8px; }
  .main-nav { display:none; width:100%; flex-direction:column; }
  .navtoggle:checked ~ .main-nav { display:flex; }
}

main.wrap { padding-top:18px; padding-bottom:40px; min-height:60vh; }
.flash { background:#23311a; border:1px solid #4d6b2a; color:#cfe8b0; padding:10px 14px; border-radius:var(--radius); margin-bottom:14px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px; margin-bottom:18px; }
.placeholder { border:2px dashed var(--gold); background:#1a1406; }
.placeholder::before { content:"PLACEHOLDER TEXT — edit me"; display:block; color:var(--gold); font-size:.75rem; letter-spacing:.1em; margin-bottom:6px; }
.about h2 { color:var(--gold); }
.about p { color:#ddd; margin:0; line-height:1.65; max-width:900px; }
.crumbs { font-size:.85rem; color:var(--muted); margin-bottom:10px; } .crumbs a { color:var(--muted); } .crumbs a:hover { color:var(--gold2); }

/* hero */
.hero { position:relative; border-radius:var(--radius); overflow:hidden; margin-bottom:24px; background:#111; min-height:180px; }
.hero img { width:100%; height:315px; object-fit:cover; opacity:.55; }
.hero .hero-text { position:absolute; left:0; right:0; bottom:0; padding:20px 24px; background:linear-gradient(transparent, rgba(0,0,0,.85)); }
.hero h1 { font-size:2rem; margin:0; } .hero p { margin:.2em 0 0; color:var(--gold2); }

/* buttons + forms */
.btn { display:inline-block; background:var(--gold); color:#000; border:0; border-radius:var(--radius); padding:9px 16px;
  font-weight:bold; cursor:pointer; font-size:.95rem; }
.btn:hover { background:var(--gold2); color:#000; }
.btn.secondary { background:var(--panel2); color:var(--text); border:1px solid var(--line); }
.btn.secondary:hover { border-color:var(--gold); color:var(--gold2); }
.btn[disabled], .btn.disabled { background:#333; color:#777; cursor:not-allowed; }
.btn.small { padding:5px 10px; font-size:.8rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], select { background:#0c0c0c; color:var(--text); border:1px solid var(--line);
  border-radius:var(--radius); padding:8px 10px; font-size:1rem; width:100%; max-width:420px; }
label { display:block; margin:10px 0 4px; color:var(--muted); font-size:.9rem; }
.inline { display:inline; } .inline select { width:auto; }

/* cards grid */
.section-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; flex-wrap:wrap; }
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:16px; margin-bottom:20px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; color:var(--text); transition:border-color .15s; }
.card:hover { border-color:var(--gold); color:var(--text); }
.card-img { aspect-ratio:3/2; background:#0a0a0a; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.card-img img { width:100%; height:100%; object-fit:cover; }
.noimg { color:#555; font-size:.85rem; }
.card-body { padding:10px 12px 12px; } .card-body h3 { margin:0 0 4px; }

/* one-line event list (events.php): name · date · city · photos · cameras, no thumbnails; wraps at separators on narrow screens */
.evline { list-style:none; margin:0 0 20px; padding:0; }
.evline a { display:block; padding:9px 4px; border-bottom:1px solid var(--line); color:var(--muted); }
.evline a:hover { background:var(--panel); color:var(--text); }
.evline strong { color:#fff; font-weight:600; }
.evline .f { white-space:nowrap; } .evline .sep { color:var(--gold); }

/* upcoming events (home) */
.upcoming { display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:12px; margin-bottom:26px; }
.up-card { background:var(--panel); border:1px solid var(--line); border-left:3px solid var(--gold); border-radius:var(--radius); padding:10px 12px; display:flex; flex-direction:column; gap:2px; }
.up-card h3 { margin:2px 0; color:#fff; }
.up-date { color:var(--gold2); font-size:.85rem; font-weight:bold; letter-spacing:.03em; text-transform:uppercase; }
.up-notify { margin-top:auto; padding-top:6px; font-size:.82rem; }

/* event list */
.year-block h2 { border-bottom:1px solid var(--line); padding-bottom:6px; color:var(--gold); }

/* event page */
.event-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); gap:20px; align-items:start; }
.event-head img { border-radius:var(--radius); }
@media (max-width:760px) { .event-head { grid-template-columns:1fr; } }
.buckets { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; }
.bucket { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; color:var(--text); }
.bucket:hover { border-color:var(--gold); color:var(--text); }
.bucket img { aspect-ratio:3/2; width:100%; object-fit:cover; background:#0a0a0a; }
.bucket .b-body { padding:6px 10px; } .bucket strong { color:#fff; }

/* thumbnail grid */
/* existing SSAF thumbs are small (100x150 portrait / 150x100 landscape), so show them at native
   height in a justified flex row instead of cropping/upscaling them */
.thumbs { display:flex; flex-wrap:wrap; gap:8px; }
.thumbs a { display:block; height:150px; min-width:100px; background:#0a0a0a; border:1px solid #1d1d1d; border-radius:4px; overflow:hidden; }
.thumbs a:hover { border-color:var(--gold); }
.thumbs img { height:100%; width:auto; }
.pager { display:flex; gap:6px; flex-wrap:wrap; margin:16px 0; align-items:center; }
.pager a, .pager span { padding:5px 11px; border:1px solid var(--line); border-radius:4px; font-size:.9rem; }
.pager span.cur { background:var(--gold); color:#000; border-color:var(--gold); }

/* photo page */
.photo-page { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr); gap:22px; align-items:start; }
@media (max-width:820px) { .photo-page { grid-template-columns:1fr; } }
.photo-page .big img { width:100%; border-radius:var(--radius); border:1px solid var(--line); }
.prevnext { display:flex; justify-content:space-between; margin-top:10px; }
.opts { list-style:none; padding:0; margin:0 0 14px; }
.opts li label { display:flex; justify-content:space-between; gap:10px; background:#0c0c0c; border:1px solid var(--line);
  border-radius:var(--radius); padding:10px 12px; margin:6px 0; color:var(--text); cursor:pointer; font-size:1rem; }
.opts input { margin-right:8px; } .opts .price { color:var(--gold2); font-weight:bold; }
.opt-note { margin:0 0 12px; } .buy-note { margin-top:12px; } /* photo.php: space around Add to cart */

/* tables */
table.list { width:100%; border-collapse:collapse; }
table.list th, table.list td { text-align:left; padding:8px; border-bottom:1px solid var(--line); vertical-align:middle; }
table.list th { color:var(--muted); font-weight:normal; font-size:.85rem; text-transform:uppercase; }
table.list img { width:90px; border-radius:4px; }
table.list .num { text-align:right; white-space:nowrap; }
.total-row td { font-size:1.15rem; color:#fff; border-bottom:0; }
@media (max-width:640px) { table.list .hide-sm { display:none; } }

/* checkout / pay */
.paymethods { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:10px; margin:10px 0; }
.paymethods .btn { width:100%; padding:14px; }
.paymethods .sub { display:block; font-size:.75rem; font-weight:normal; }
.btcbox { display:flex; gap:20px; flex-wrap:wrap; align-items:center; }
.btcbox img { width:200px; background:#fff; padding:8px; border-radius:var(--radius); }
code.addr { word-break:break-all; background:#0c0c0c; padding:6px 8px; border-radius:4px; color:var(--gold2); display:inline-block; }
.status { padding:2px 8px; border-radius:10px; font-size:.8rem; background:#333; }
.status.paid { background:#2c5a1e; color:#d4f5c2; } .status.awaiting_payment { background:#5a3b00; color:var(--gold2); }

.site-footer { border-top:2px solid var(--gold); background:#000; padding:18px 0; font-size:.85rem; }
.foot-nav { display:flex; gap:16px; flex-wrap:wrap; } .foot-nav a { color:var(--muted); } .foot-nav a:hover { color:var(--gold2); }
.copy { color:#666; margin:10px 0 0; }

/* v3: provider badges, free tags, bib search */
.prov { padding:2px 8px; border-radius:10px; font-size:.8rem; background:#262626; }
.prov-free { background:#1e4a5a; color:#bfeaff; font-weight:bold; letter-spacing:.05em; }
.prov-fake { background:#3a2a4a; color:#e2cfff; }
.freetag { display:inline-block; background:#1e4a5a; color:#bfeaff; font-size:.72rem; font-weight:bold; padding:1px 7px; border-radius:10px; letter-spacing:.05em; vertical-align:middle; }
.bibbox { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:12px 0 4px; padding:10px 12px; background:#0c0c0c; border:1px solid var(--gold); border-radius:var(--radius); }
.bibbox label { margin:0; color:var(--gold2); font-weight:bold; }
.bibbox input[type=text] { width:140px; font-size:1.1rem; }
.bibgrid { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.bibgrid .bp { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:6px; text-align:center; }
.bibgrid .bp img { height:170px; width:auto; border-radius:4px; margin:0 auto 6px; }
.bibgrid .bp .small { display:block; margin-bottom:4px; }
.bundlebox { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; }
