/* WorldClimb Directory - modelled on the 2017 www.worldclimb.com design:
   near-black page, 1000px white site with a black logo header, a dark
   grey tabbed menu, a grey left column of red-lettered buttons and
   Verdana throughout. Gradients replace the original slice images. */

:root {
    --red: #e00000;
    --red-dark: #a00000;
    --ink: #222;
    --muted: #666;
    --grey-1: #f2f2f2;
    --grey-2: #d9d9d9;
    --grey-3: #8a8a8a;
    --grey-4: #4b4b4b;
    --grey-5: #2c2c2c;
    --row1: #ffffff;
    --row2: #f1f1f1;
}

* { box-sizing: border-box; }
html { background: #111; }
body {
    margin: 0; padding: 10px 0 30px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px; line-height: 1.5; color: var(--ink);
    background: #111;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: #000; text-decoration: underline; }
img { border: 0; max-width: 100%; }

.container {
    width: 1000px; max-width: 100%; margin: 0 auto;
    background: #fff; box-shadow: 0 0 0 1px #333;
}

/* ---------- Header ---------- */
#wlogo {
    display: grid; grid-template-columns: 204px 1fr 260px; align-items: center; gap: 14px;
    padding: 10px 14px;
    background: linear-gradient(#fdfdfd, #d8d8d8 70%, #bdbdbd);
    border-bottom: 1px solid #777;
}
#worldlogo img { display: block; width: 192px; height: auto; border: 3px solid #000; background: #000; }
#wtitle { text-align: center; }
.definitive {
    font-family: "Copperplate Gothic Bold", "Copperplate", "Trebuchet MS", Verdana, sans-serif;
    font-size: 30px; line-height: 1.15; font-weight: bold; letter-spacing: .14em; text-transform: uppercase;
    color: #1a1a1a; text-shadow: 1px 1px 0 #fff, 2px 2px 2px rgba(0,0,0,.35);
}
#windexing { margin-top: 6px; color: #b00000; font-weight: bold; font-size: 15px; }
#searchbox {
    align-self: start; display: flex; gap: 6px; padding: 7px 8px;
    background: linear-gradient(#ff3b30, #b30000); border-radius: 8px; border: 1px solid #700;
}
#searchbox input {
    flex: 1; min-width: 0; padding: 4px 6px; font: 12px Verdana, sans-serif;
    border: 1px solid #700; border-radius: 3px;
}
#searchbox button {
    width: 28px; border: 1px solid #fff; border-radius: 50%; background: #c00; color: #fff;
    font-weight: bold; cursor: pointer;
}
#searchbox button:hover { background: #000; }

/* ---------- Top menu ---------- */
#menu-header { background: linear-gradient(#5a5a5a, #2f2f2f); border-bottom: 2px solid #111; position: relative; z-index: 20; }
.menu-toggle { display: none; }
.menu { list-style: none; margin: 0; padding: 0 6px; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a {
    display: block; padding: 8px 22px 7px 16px; color: #fff; text-decoration: none;
    border-right: 1px solid #222; box-shadow: inset -1px 0 0 #666;
}
.menu .title { display: block; font-weight: bold; font-size: 14px; }
.menu .sub { display: block; font-size: 10px; color: #bbb; }
.menu > li:hover > a, .menu > li.current > a {
    background: linear-gradient(#fff, #d6d6d6); color: var(--red);
}
.menu > li:hover .sub, .menu > li.current .sub { color: #555; }
.menu li ul {
    display: none; position: absolute; left: 0; top: 100%; min-width: 230px;
    list-style: none; margin: 0; padding: 4px 0; background: #2f2f2f; border: 1px solid #111;
    box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
.menu li:hover ul, .menu li:focus-within ul { display: block; }
.menu li ul a { display: block; padding: 6px 14px; color: #eee; font-size: 12px; }
.menu li ul a:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ---------- Content area: left column + main ---------- */
#contentarea { display: flex; align-items: stretch; }
#leftcolumn {
    flex: 0 0 200px; padding: 10px 10px 20px;
    background: linear-gradient(90deg, #5c5c5c, #6d6d6d 50%, #5c5c5c);
    color: #fff;
}
#leftcolumn h2 {
    margin: 14px 0 6px; font-size: 14px; text-align: center; color: #fff;
    text-shadow: 1px 1px 1px #000;
}
#leftcolumn ul { list-style: none; margin: 0; padding: 0; }
#leftcolumn li a {
    display: block; margin: 0 0 6px; padding: 5px 6px; text-align: center;
    font-size: 11.5px; font-weight: bold; color: #c00000;
    background: linear-gradient(#fafafa, #cfcfcf); border: 2px outset #bbb;
}
#leftcolumn li a:hover { color: #000; background: linear-gradient(#fff, #e9e9e9); text-decoration: none; }

#midcolumn { flex: 1; min-width: 0; padding: 0 22px 30px; }
#banner { margin: 0 -22px; line-height: 0; }
#banner img { width: 100%; height: auto; max-height: 150px; object-fit: cover; }
#banner2 {
    margin: 0 -22px 18px; padding: 8px 22px; font-size: 11px; color: #000;
    background: linear-gradient(#f4f4f4, #d0d0d0); border-bottom: 1px solid #aaa;
}
#banner2 .sep { color: #888; margin: 0 4px; }

h1 { font-size: 20px; color: #000; margin: 14px 0 12px; }
h1 small { font-size: 14px; color: var(--muted); font-weight: normal; }
h1.with-flag img { vertical-align: -3px; margin-right: 6px; border: 1px solid #999; }
h2 { font-size: 16px; color: #000; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
.lead { font-weight: bold; }
.brand-red { color: var(--red); }
.empty { color: var(--muted); font-style: italic; }
.back { margin-top: 16px; font-size: 12px; }

/* ---------- Home page ---------- */
.home-title { font-size: 17px; margin-top: 20px; }
.home-search { text-align: center; margin: 22px 0 26px; }
.search-word {
    font-family: "Copperplate Gothic Bold", "Copperplate", "Trebuchet MS", Verdana, sans-serif;
    font-size: 34px; letter-spacing: .12em; text-transform: uppercase; color: #222;
    text-shadow: 1px 1px 0 #fff, 2px 2px 3px rgba(0,0,0,.3);
}
.search-word span { background: #000; color: #fff; padding: 0 10px; text-shadow: none; }
.home-search .row { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.home-search input { width: 280px; max-width: 70vw; padding: 4px 6px; border: 1px solid #888; background: #eef; font: inherit; }
.home-search button { background: none; border: 0; font: 17px Verdana, sans-serif; cursor: pointer; color: #222; }
.home-search a { color: #222; font-size: 17px; margin-left: 30px; }
.new-sites-head { display: flex; justify-content: center; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.new-sites-head h2 { color: #1f3fa8; margin: 0 0 8px; font-size: 15px; }
.add-link { color: var(--red); font-weight: bold; font-size: 15px; }
.home-dirs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 26px; }
.dir-tile {
    padding: 10px; text-align: center; font-weight: bold; font-size: 12px; color: #c00000;
    background: linear-gradient(#fafafa, #d6d6d6); border: 1px solid #aaa; border-radius: 3px;
}
.dir-tile:hover { color: #000; text-decoration: none; }

/* ---------- Listing tables ---------- */
table.listing { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 13px; }
table.listing td { padding: 3px 8px; }
table.listing tr.row1 td { background: var(--row1); }
table.listing tr.row2 td { background: var(--row2); }
table.listing tr.featured td { background: #fff7e6; }
table.listing tr.featured.row2 td { background: #fdefd2; }
table.listing td.name a { color: #000; }
table.listing tr.featured td.name a { font-weight: bold; }
table.listing td.name a:hover { color: var(--red); }
table.listing .mini-logo { display: block; max-height: 40px; max-width: 160px; margin-top: 3px; }
table.listing td.flags { text-align: right; white-space: nowrap; width: 1%; }
a.flag { display: inline-block; margin-left: 4px; line-height: 0; }
a.flag img { border: 1px solid #999; }
.result-count { color: var(--muted); }

/* A-Z letter bar */
.letters { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0 14px; }
.letters a {
    min-width: 28px; padding: 3px 5px; text-align: center; font-weight: bold; font-size: 12px;
    color: #fff; background: linear-gradient(#666, #333); border: 1px solid #111;
}
.letters a:hover, .letters a.on { background: linear-gradient(#ff3b30, #b30000); color: #fff; text-decoration: none; }

/* Directory pages: two-column category list with bullets */
.cat-list { columns: 2; column-gap: 30px; margin: 0; padding: 0 0 0 4px; list-style: none; }
.cat-list li { break-inside: avoid; padding: 2px 0 2px 16px; position: relative; font-size: 13px; font-weight: bold; }
.cat-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: #000; }
.cat-list a { color: #000; }
.cat-list a:hover { color: var(--red); }
.cat-list .n { color: #000; }
.cat-list.countries li { padding-left: 0; }
.cat-list.countries li::before { display: none; }
.cat-list.countries img { vertical-align: -2px; border: 1px solid #999; margin-right: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 12px; }
.filters a { padding: 2px 9px; font-size: 11.5px; border: 1px solid #bbb; border-radius: 10px; color: #333; background: #f4f4f4; }
.filters a.on, .filters a:hover { background: #333; color: #fff; border-color: #333; text-decoration: none; }

.dir-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dir-card { display: block; padding: 12px 14px; border: 1px solid #bbb; background: linear-gradient(#fff, #ececec); color: #000; }
.dir-card strong { display: block; color: #c00000; }
.dir-card span { font-size: 12px; color: var(--muted); }
.dir-card:hover { border-color: #c00000; text-decoration: none; }

/* ---------- Profile page ---------- */
.profile-side { margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid #888; }
.profile-side h3 { margin: 12px 0 4px; font-size: 12px; color: #fff; text-transform: uppercase; letter-spacing: .05em; }
.profile-side p, .profile-side .country-line { margin: 0 0 4px; font-size: 12px; word-wrap: break-word; }
.profile-side a { color: #fff; }
.profile-side a:hover { color: #ffd2d2; }
.profile-side img { vertical-align: -2px; border: 1px solid #333; }
#leftcolumn .profile-side ul li a {
    display: inline; margin: 0; padding: 0; text-align: left; background: none; border: 0;
    font-weight: normal; font-size: 12px; color: #fff;
}
#leftcolumn .profile-side ul li { margin: 0 0 2px; }
#leftcolumn .profile-side ul li a:hover { color: #ffd2d2; }

.profile-head { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.profile-head h1 { margin: 0; font-size: 24px; }
.profile-head h1 a { color: #000; }
.profile-head h1 a:hover { color: var(--red); }
.profile-logo { max-width: 250px; max-height: 110px; border: 1px solid #ddd; }
.profile-text { margin-top: 16px; }
.profile-text h2 { font-size: 15px; color: #b00000; }
.profile-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 18px 0; }
.profile-images img { width: 100%; height: auto; border: 1px solid #ccc; }
.profile-note { margin-top: 24px; font-size: 11.5px; color: var(--muted); }

/* ---------- Forms ---------- */
.site-form { max-width: 560px; }
.site-form label, .adv-search label { display: block; font-weight: bold; font-size: 12px; margin: 12px 0 4px; }
.site-form input[type=text], .site-form input[type=email], .site-form textarea,
.adv-search input, .adv-search select {
    width: 100%; padding: 6px 8px; font: 13px Verdana, sans-serif; border: 1px solid #999; background: #fbfbff;
}
.site-form textarea { resize: vertical; }
.site-form button, .adv-search button {
    margin-top: 16px; padding: 6px 18px; font: bold 13px Verdana, sans-serif; color: #fff; cursor: pointer;
    background: linear-gradient(#ff3b30, #b30000); border: 1px solid #700; border-radius: 4px;
}
.site-form button:hover, .adv-search button:hover { background: #000; }
.hint { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 10px 12px; margin: 12px 0; border: 1px solid; font-weight: bold; font-size: 13px; }
.msg.ok { background: #eaf7ea; border-color: #7bbf7b; color: #1b5e1b; }
.msg.error { background: #fdeaea; border-color: #d88; color: #900; }

.adv-search {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; align-items: end;
    padding: 4px 14px 14px; margin-bottom: 18px; background: var(--grey-1); border: 1px solid #ccc;
}
.adv-search .field.wide { grid-column: 1 / -1; }

.twocol { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: start; }
.contact-details h2 { font-size: 13px; margin: 14px 0 4px; }
.contact-details p { font-size: 13px; }
.static-text h2 { font-size: 15px; color: #b00000; }
.static-text li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
#footer {
    padding: 12px 16px; text-align: center; font-size: 11px; color: #ccc;
    background: linear-gradient(#3b3b3b, #1b1b1b); border-top: 2px solid #000;
}
#footer a { color: #fff; }
#datetext { margin-top: 4px; color: #999; }
#datetext a { color: #bbb; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
    body { padding: 0; }
    #wlogo { grid-template-columns: 110px 1fr; }
    #worldlogo img { width: 100px; }
    .definitive { font-size: 18px; }
    #windexing { font-size: 12px; }
    #searchbox { grid-column: 1 / -1; }
    .menu-toggle {
        display: block; width: 100%; padding: 8px; border: 0; background: none; color: #fff;
        font: bold 14px Verdana, sans-serif; text-align: left; cursor: pointer;
    }
    .menu { display: none; flex-direction: column; }
    body.menu-open .menu { display: flex; }
    .menu li ul { position: static; display: block; box-shadow: none; border: 0; padding-left: 12px; }
    #contentarea { flex-direction: column-reverse; }
    #leftcolumn { flex-basis: auto; }
    #midcolumn { padding: 0 12px 20px; }
    #banner, #banner2 { margin-left: -12px; margin-right: -12px; }
    .cat-list { columns: 1; }
    .adv-search, .twocol { grid-template-columns: 1fr; }
    .search-word { font-size: 22px; }
    .home-search a { margin-left: 0; }
}
