/*
 Theme Name:   My Listing Child
 Theme URI:    http://mylisting.27collective.net/my-city/
 Description:  MyListing Child Theme
 Author:       27collective
 Author URI:   https://27collective.net/
 Template:     my-listing
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         one-column, two-columns, three-columns, left-sidebar, right-sidebar, grid-layout, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  my-listing-child
*/
/* ===========================================================
   CITYGO DESIGN SYSTEM
   Version: 1.0
   =========================================================== */

/* 1. Design Tokens */
:root {
  --cg-primary: #09B1BA;
  --cg-primary-hover: #0897A0;
  --cg-dark: #0B0F14;
  --cg-dark-soft: #111827;
  --cg-bg: #F7F9FC;
  --cg-card: #FFFFFF;
  --cg-border: #E8EDF3;
  --cg-text: #111827;
  --cg-muted: #6B7280;
  --cg-success: #22C55E;
  --cg-warning: #F59E0B;
  --cg-error: #EF4444;

  --cg-radius-btn: 14px;
  --cg-radius-input: 16px;
  --cg-radius-card: 20px;
  --cg-radius-modal: 24px;
  --cg-radius-pill: 999px;

  --cg-shadow-soft: 0 8px 24px rgba(15, 23, 42, .08);
  --cg-shadow-card: 0 16px 40px rgba(15, 23, 42, .10);

  --cg-container: 1320px;
  --cg-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* 2. Base */
body {
  font-family: var(--cg-font);
  background: var(--cg-bg);
  color: var(--cg-text);
}

/* 3. Utilities */
.cg-container {
  width: min(100% - 32px, var(--cg-container));
  margin-left: auto;
  margin-right: auto;
}

.cg-section {
  padding: 72px 0;
}

.cg-section-title {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cg-text);
  margin: 0 0 20px;
}

/* 4. Buttons */
.cg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--cg-radius-btn);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}

.cg-btn-primary {
  background: var(--cg-primary);
  color: #fff;
  box-shadow: var(--cg-shadow-soft);
}

.cg-btn-primary:hover {
  background: var(--cg-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.cg-btn-secondary {
  background: var(--cg-card);
  color: var(--cg-text);
  border-color: var(--cg-border);
}

.cg-btn-secondary:hover {
  border-color: var(--cg-primary);
  color: var(--cg-primary);
}

/* 5. Cards */
.cg-card {
  background: var(--cg-card);
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-card);
  box-shadow: var(--cg-shadow-soft);
  overflow: hidden;
}

/* 6. Forms */
.cg-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--cg-border);
  border-radius: var(--cg-radius-input);
  background: #fff;
  color: var(--cg-text);
  padding: 0 16px;
  font-size: 15px;
  outline: none;
}

.cg-input:focus {
  border-color: var(--cg-primary);
  box-shadow: 0 0 0 4px rgba(9, 177, 186, .14);
}

/* 7. Responsive */
@media (max-width: 768px) {
  .cg-section {
    padding: 48px 0;
  }

  .cg-section-title {
    font-size: 24px;
  }
}
/* ===========================================================
   CITYGO HEADER + HERO
   =========================================================== */

.cg-home {
  background: var(--cg-bg);
  min-height: 100vh;
}

.cg-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.cg-topbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cg-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.cg-city-select {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cg-main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.cg-main-nav a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.cg-main-nav a:hover {
  color: var(--cg-primary);
}

.cg-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cg-round-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 22px;
}

.cg-account {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--cg-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.cg-hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: var(--cg-dark);
}

.cg-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,15,20,.9) 0%, rgba(11,15,20,.42) 48%, rgba(9,177,186,.35) 100%),
    url('/wp-content/uploads/2026/07/kuressaare-hero.jpg') center/cover no-repeat;
}

.cg-hero-content {
  position: relative;
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: center;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 48px;
}

.cg-hero-text h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(44px, 5vw, 72px);
  line-height: .96;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.cg-hero-text p {
  color: rgba(255,255,255,.88);
  font-size: 18px;
  max-width: 430px;
  margin: 0;
}

.cg-weather {
  justify-self: end;
  width: 220px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(11,15,20,.48);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
  color: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

.cg-weather div {
  font-size: 28px;
  font-weight: 800;
}

.cg-weather strong {
  font-size: 44px;
}

.cg-weather span,
.cg-weather small {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.82);
}

.cg-search {
  position: absolute;
  left: 50%;
  bottom: 165px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  height: 64px;
  display: grid;
  grid-template-columns: 1fr 190px 56px;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 20px 60px rgba(15,23,42,.22);
}

.cg-search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 22px;
}

.cg-search-input span {
  font-size: 22px;
  color: var(--cg-muted);
}

.cg-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 15px;
  color: var(--cg-text);
}

.cg-search-location {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--cg-border);
  color: var(--cg-text);
  font-weight: 700;
  font-size: 14px;
}

.cg-search button {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--cg-primary);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.cg-quick-actions {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  width: min(760px, calc(100% - 32px));
}

.cg-quick-actions a {
  height: 92px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  color: var(--cg-text);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(15,23,42,.14);
  border: 1px solid rgba(255,255,255,.65);
}

.cg-quick-actions span {
  display: block;
  font-size: 14px;
  margin-top: -10px;
}

/* Mobile */
@media (max-width: 900px) {
  .cg-topbar-inner {
    height: 64px;
    gap: 12px;
  }

  .cg-brand img {
    height: 34px;
  }

  .cg-main-nav,
  .cg-nav-actions {
    display: none;
  }

  .cg-city-select {
    margin-left: auto;
    height: 36px;
    font-size: 13px;
  }

  .cg-hero,
  .cg-hero-content {
    min-height: 760px;
  }

  .cg-hero-content {
    display: block;
    padding-top: 64px;
  }

  .cg-hero-text h1 {
    font-size: 40px;
    line-height: 1;
  }

  .cg-hero-text p {
    font-size: 15px;
    max-width: 280px;
  }

  .cg-weather {
    width: auto;
    margin-top: 22px;
    padding: 18px;
    border-radius: 22px;
  }

  .cg-weather strong {
    font-size: 34px;
  }

  .cg-search {
    bottom: 235px;
    height: auto;
    grid-template-columns: 1fr 52px;
    border-radius: 24px;
    padding: 10px;
  }

  .cg-search-location {
    grid-column: 1 / -1;
    order: 2;
    justify-content: flex-start;
    padding-left: 16px;
    border-left: 0;
    border-top: 1px solid var(--cg-border);
    margin-top: 10px;
  }

  .cg-search button {
    width: 52px;
    height: 52px;
  }

  .cg-quick-actions {
    bottom: 40px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .cg-quick-actions a {
    height: 86px;
    border-radius: 20px;
  }
}
/* TEMP: Hide MyListing default header */
.header,
.i-section.header,
.c27-main-header,
.header-container,
.main-header {
    display: none !important;
}