/* Cyprus Go — shared page styles (etalons).
 * Articles:  body.gc-article  ← /raspisnye-cerkvi-troodosa/
 * Archives:  body.gc-archive  ← /category/resort/
 * Homepage:  do NOT load this file (uses home.css).
 * Replaces Temperа look with our own shared UI.
 */

body.gc-article,
body.gc-archive {
  --p-orange: #ff6600;
  --p-ink: #1b2430;
  --p-muted: #5a6573;
  --p-line: #dce7f2;
  --p-sky: #eaf5ff;
  background:
    radial-gradient(1000px 380px at 18% -60px, rgba(79, 195, 247, 0.16), transparent 70%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 32%, #ffffff 100%) !important;
  color: var(--p-ink);
}

/* Hide leftovers from the old Temperа theme */
body.gc-article #nav-below,
body.gc-article .wp-polls-loading,
body.gc-article span[id^="more-"],
body.gc-article .icon-homebread,
body.gc-article .icon-angle-right,
body.gc-article .icon-folder-open,
body.gc-article .icon-metas,
body.gc-article .icon-right-dir,
body.gc-article .meta-nav-prev,
body.gc-article .meta-nav-next,
body.gc-article .wp-polls .Buttons,
body.gc-article .wp-polls a[href="#ViewPollResults"],
body.gc-article #recent-posts-15,
body.gc-article .sidey .xoxo > ul > ul,
body.gc-archive #nav-below,
body.gc-archive .wp-polls-loading,
body.gc-archive .icon-homebread,
body.gc-archive .icon-angle-right,
body.gc-archive .icon-folder-open,
body.gc-archive .icon-metas,
body.gc-archive .icon-right-dir,
body.gc-archive .wp-polls .Buttons,
body.gc-archive .wp-polls a[href="#ViewPollResults"],
body.gc-archive #recent-posts-15,
body.gc-archive .sidey .xoxo > ul > ul,
body.gc-archive .navigation {
  display: none !important;
}

body.gc-article #topbar,
body.gc-archive #topbar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(220, 231, 242, 0.95) !important;
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.06) !important;
  opacity: 1 !important;
}

body.gc-article #main,
body.gc-article #forbottom,
body.gc-article #container,
body.gc-archive #main,
body.gc-archive #forbottom,
body.gc-archive #container {
  background: transparent !important;
}

body.gc-article #access,
body.gc-archive #access {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(13, 71, 161, 0.1);
}

/* Wider content + sidebar on the right (override site-canon 680px cap) */
body.gc-article #header,
body.gc-article #main,
body.gc-article #topbar-inner,
body.gc-archive #header,
body.gc-archive #main,
body.gc-archive #topbar-inner {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

body.gc-article #container.two-columns-right,
body.gc-archive #container.two-columns-right {
  max-width: 1400px;
  margin: 12px auto 24px;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: hidden;
}

body.gc-article #container.two-columns-right #content,
body.gc-archive #container.two-columns-right #content {
  float: left !important;
  width: calc(100% - 340px) !important;
  max-width: none !important;
}

body.gc-article #container.two-columns-right #secondary,
body.gc-archive #container.two-columns-right #secondary {
  float: right !important;
  width: 310px !important;
}

body.gc-article #content {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  padding: 18px 22px 22px;
  box-shadow: 0 12px 30px rgba(13, 71, 161, 0.07);
  box-sizing: border-box;
}

body.gc-archive #content {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  box-sizing: border-box;
}

body.gc-article .breadcrumbs,
body.gc-archive .breadcrumbs {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--p-sky);
  border: 1px solid #e3eef8;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--p-muted);
}

/* Category page already has H1 «Курорты Кипра» — hide duplicate crumbs */
body.gc-archive .breadcrumbs {
  display: none !important;
}

body.gc-article .breadcrumbs a,
body.gc-archive .breadcrumbs a {
  color: var(--gc-blue, #1565c0) !important;
  text-decoration: none;
  font-weight: 600;
}

body.gc-article .breadcrumbs a:hover,
body.gc-archive .breadcrumbs a:hover {
  color: var(--p-orange) !important;
}

/* Article title */
body.gc-article h1.entry-title {
  margin: 0 0 10px !important;
  padding: 0 0 12px !important;
  font-size: 28px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: var(--p-orange) !important;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--p-orange), #ffb347, transparent) 1;
}

/* Category archive title */
body.gc-archive .page-header {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.gc-archive h1.page-title {
  margin: 0 0 4px !important;
  padding: 0 0 12px !important;
  font-size: 28px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: var(--p-orange) !important;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--p-orange), #ffb347, transparent) 1;
}

body.gc-article .entry-meta {
  margin: 0 0 14px;
}

body.gc-article .entry-meta .bl_categ a,
body.gc-archive footer.entry-meta .bl_categ a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gc-blue, #1565c0);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
}

body.gc-article .entry-meta .bl_categ a:hover,
body.gc-archive footer.entry-meta .bl_categ a:hover {
  background: var(--gc-cyan-hot, #29b6f6) !important;
  color: var(--gc-ink, #0b3a6e) !important;
}

body.gc-article .entry-content {
  color: var(--p-ink);
  font-size: 15px;
  line-height: 1.75;
}

body.gc-article .entry-content p {
  margin: 0 0 1em;
  color: var(--p-ink) !important;
}

body.gc-article .entry-content a {
  color: var(--gc-blue, #1565c0) !important;
  text-underline-offset: 2px;
}

body.gc-article .entry-content a:hover {
  color: var(--p-orange) !important;
}

body.gc-article .entry-content h1 {
  display: flow-root;
  margin: 0.2em 0 0.85em !important;
  padding: 0;
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: var(--p-orange) !important;
  clear: none;
}

body.gc-article .entry-content h2,
body.gc-article .entry-content .gc-article-h2,
body.gc-article .entry-content .gc-article-h2 {
  margin: 1.25em 0 0.55em !important;
  padding: 0;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: var(--p-orange) !important;
  clear: both;
}

body.gc-article .entry-content h3.gc-article-subheading {
  margin: 0.9em 0 0.35em !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #31455f !important;
}

body.gc-article .entry-content img.alignright,
body.gc-article .entry-content img.alignleft,
body.gc-article .entry-content img.size-medium,
body.gc-article .entry-content img.wp-image {
  border-radius: 12px !important;
  border: 1px solid #e4eef8 !important;
  box-shadow: 0 10px 22px rgba(15, 40, 80, 0.1) !important;
  background: #fff;
}

body.gc-article .entry-content img.alignright {
  margin: 4px 0 14px 18px !important;
}

body.gc-article .entry-content img.alignleft {
  margin: 4px 18px 14px 0 !important;
}

body.gc-article .entry-content iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 420px;
  margin: 8px 0 4px;
  border: 0 !important;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 40, 80, 0.1);
}

body.gc-article .entry-content img.aligncenter,
body.gc-article .entry-content .aligncenter {
  display: block !important;
  float: none !important;
  margin: 12px auto !important;
  max-width: 100%;
  height: auto !important;
}

/* Clean article tables */
body.gc-article .entry-content .gc-table-wrap {
  clear: both;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.35rem;
  border-radius: 12px;
  border: 1px solid #e4eef8;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 40, 80, 0.06);
}
body.gc-article .entry-content table.gc-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  margin: 0 !important;
  border: 0 !important;
  background: #fff;
}
body.gc-article .entry-content table.gc-table th,
body.gc-article .entry-content table.gc-table td {
  border: 0 !important;
  border-bottom: 1px solid #e8f0f8 !important;
  padding: 0.7rem 0.85rem !important;
  vertical-align: top;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
  color: #31455f;
}
body.gc-article .entry-content table.gc-table thead th,
body.gc-article .entry-content table.gc-table tr.gc-table__head th,
body.gc-article .entry-content table.gc-table tr.gc-table__head td {
  background: linear-gradient(180deg, #fff8f0 0%, #fff3e6 100%);
  color: #e65100 !important;
  font-weight: 700;
  border-bottom: 1px solid #f0d4b0 !important;
}
body.gc-article .entry-content table.gc-table tr.gc-table__section td {
  background: #f4f8fc;
  color: #1565c0 !important;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid #d9e7f5 !important;
}
body.gc-article .entry-content table.gc-table tbody tr:nth-child(even):not(.gc-table__section):not(.gc-table__head) td {
  background: #fafcfe;
}
body.gc-article .entry-content table.gc-table tbody tr:last-child td {
  border-bottom: 0 !important;
}
body.gc-article .entry-content table.gc-table .gc-table__num {
  width: 2.4rem;
  color: #7a8fa8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.gc-article .entry-content table.gc-table .gc-table__name {
  font-weight: 700;
  color: #243447;
  white-space: nowrap;
}
body.gc-article .entry-content table.gc-table ul {
  margin: 0 !important;
  padding-left: 1.1rem !important;
}
body.gc-article .entry-content table.gc-table li {
  margin: 0.15rem 0 !important;
}
body.gc-article .entry-content table.gc-table--hotels th,
body.gc-article .entry-content table.gc-table--hotels td {
  min-width: 9.5rem;
}
@media (max-width: 700px) {
  body.gc-article .entry-content table.gc-table .gc-table__name {
    white-space: normal;
  }
  body.gc-article .entry-content table.gc-table--hotels {
    min-width: 640px;
  }
}

body.gc-article .entry-content .gc-gallery-row {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  padding: 0;
}
body.gc-article .entry-content .gc-gallery-row a {
  line-height: 0;
  flex: 0 0 150px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.gc-article .entry-content .gc-gallery-row a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 40, 80, 0.14);
}
body.gc-article .entry-content .gc-gallery-row img {
  display: block;
  float: none !important;
  margin: 0 !important;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px !important;
  border: 1px solid #e4eef8 !important;
  box-shadow: 0 6px 14px rgba(15, 40, 80, 0.08) !important;
}
@media (max-width: 480px) {
  body.gc-article .entry-content .gc-gallery-row {
    gap: 8px;
  }
  body.gc-article .entry-content .gc-gallery-row a {
    flex: 0 0 calc(50% - 4px);
  }
  body.gc-article .entry-content .gc-gallery-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

body.gc-article .entry-content .gc-related.wp_rp_wrap {
  clear: both;
  margin-top: 18px;
}

/* Category listing — equal 2-col CSS grid (no Temperа floats) */
body.gc-archive #content {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
  align-items: stretch;
}

body.gc-archive #content > .breadcrumbs,
body.gc-archive #content > .page-header,
body.gc-archive #content > .navigation,
body.gc-archive #content > #nav-below,
body.gc-archive #content > .pagination_container,
body.blog #content > .pagination_container,
body.paged #content > .pagination_container {
  grid-column: 1 / -1;
}

/* Pagination — full width under the card grid (all listing pages) */
body.gc-archive #content > .pagination_container,
body.blog #content > .pagination_container,
body.paged #content > .pagination_container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 4px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(13, 71, 161, 0.05);
  box-sizing: border-box;
}

body.gc-archive .pagination,
body.blog .pagination,
body.paged .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.gc-archive .pagination a,
body.gc-archive .pagination span,
body.blog .pagination a,
body.blog .pagination span,
body.paged .pagination a,
body.paged .pagination span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px !important;
  margin: 0 !important;
  border: 1px solid #c5daf0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--gc-blue, #1565c0) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.gc-archive .pagination a:hover,
body.blog .pagination a:hover,
body.paged .pagination a:hover {
  background: var(--p-sky) !important;
  border-color: #9ec8eb !important;
  color: var(--p-orange) !important;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.1);
}

body.gc-archive .pagination span.current,
body.blog .pagination span.current,
body.paged .pagination span.current {
  background: linear-gradient(90deg, var(--gc-blue, #1565c0), #1e88e5) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

body.gc-archive.magazine-layout #content > article.post,
body.gc-archive.magazine-layout #content > article,
body.gc-archive #content > article {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column;
  min-height: 0 !important;
  height: 100%;
  background: #fff;
  border: 1px solid var(--p-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.06);
  box-sizing: border-box !important;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

body.gc-archive.magazine-layout #content > article:nth-of-type(2n+1),
body.gc-archive #content > article:nth-of-type(2n+1) {
  clear: none !important;
  margin-right: 0 !important;
}

body.gc-archive #content > article:hover {
  border-color: #cfe3f7;
  box-shadow: 0 14px 28px rgba(21, 101, 192, 0.12);
  transform: translateY(-3px);
}

body.gc-archive #content > article .entry-header {
  order: 2;
  min-height: 0 !important;
  margin: 0;
  padding: 10px 2px 0;
}

body.gc-archive #content > article .entry-title {
  margin: 0 0 6px !important;
  font-size: 17px !important;
  line-height: 1.3 !important;
  max-height: none !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

body.gc-archive #content > article .entry-title a {
  color: var(--p-orange) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

body.gc-archive #content > article .entry-title a:hover {
  color: var(--gc-blue, #1565c0) !important;
}

/* Children join the card flex so photo can sit above the title */
body.gc-archive #content > article .entry-summary {
  display: contents;
}

/* Preview at native 300×200 / 3:2 — no stretched square thumbs */
body.gc-archive #content > article .entry-summary > a:first-child {
  display: block !important;
  float: none !important;
  order: 1;
  width: 100% !important;
  max-width: 300px !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  margin: 0 auto !important;
  overflow: hidden;
  line-height: 0;
  border-radius: 10px;
  background: #e8f1fa;
  border: 1px solid #e4eef8;
  box-shadow: 0 4px 12px rgba(15, 40, 80, 0.08);
}

body.gc-archive #content > article img.post_thumbnail,
body.gc-archive #content > article img.alignleft,
body.gc-archive #content > article img.wp-post-image {
  float: none !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
  object-position: center;
}

body.gc-archive #content > article .entry-summary > p:not(:last-of-type) {
  order: 3;
  color: var(--p-ink) !important;
  line-height: 1.55 !important;
  margin: 0 2px 10px !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  max-height: calc(1.55em * 4);
  min-height: calc(1.55em * 4);
}

body.gc-archive #content > article .entry-summary > p:last-of-type {
  order: 4;
  clear: none !important;
  margin: auto 2px 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

body.gc-archive #content > article .continue-reading-link {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  float: none !important;
  clear: none !important;
  margin: 0 0 2px !important;
  padding: 5px 12px 5px 11px !important;
  border: 1px solid #c5daf0 !important;
  border-bottom: 1px solid #c5daf0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--gc-blue, #1565c0) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(13, 71, 161, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.gc-archive #content > article .continue-reading-link i.icon-right-dir,
body.gc-archive #content > article .continue-reading-link i.icon-right-dir::before,
body.gc-archive #content > article .continue-reading-link i.icon-right-dir::after {
  display: none !important;
  content: none !important;
}
body.gc-archive #content > article .continue-reading-link::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

body.gc-archive #content > article .continue-reading-link:hover {
  background: var(--p-sky) !important;
  border-color: #9ec8eb !important;
  color: var(--p-orange) !important;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.1);
}

body.gc-archive #content > article footer.entry-meta {
  display: none;
}

body.gc-archive #content > article .entry-header .entry-meta {
  display: none;
}

/* Sidebar shared */
body.gc-article #secondary.sidey,
body.gc-archive #secondary.sidey {
  background: transparent !important;
}

body.gc-article #secondary .widget-container,
body.gc-archive #secondary .widget-container {
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(13, 71, 161, 0.06);
  margin-bottom: 14px !important;
  padding-bottom: 8px;
}

body.gc-article #secondary .widget-title,
body.gc-article #secondary .gc-related__title.widget-title,
body.gc-archive #secondary .widget-title,
body.gc-archive #secondary .gc-related__title.widget-title {
  margin: 0 0 8px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, var(--gc-blue, #1565c0), #1e88e5) !important;
  color: #fff !important;
  font-size: 15px !important;
}

body.gc-article #secondary .textwidget,
body.gc-article #secondary .textwidget ul,
body.gc-article #secondary .textwidget li,
body.gc-archive #secondary .textwidget,
body.gc-archive #secondary .textwidget ul,
body.gc-archive #secondary .textwidget li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.gc-article #secondary .textwidget a,
body.gc-archive #secondary .textwidget a {
  display: block;
  padding: 8px 14px;
  color: var(--p-ink) !important;
  text-decoration: none !important;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.gc-article #secondary .textwidget a:hover,
body.gc-archive #secondary .textwidget a:hover {
  background: var(--p-sky);
  border-left-color: var(--gc-cyan, #4fc3f7);
  color: var(--gc-blue, #1565c0) !important;
}

body.gc-article #secondary .gc-poll,
body.gc-article #secondary .wp-polls,
body.gc-archive #secondary .gc-poll,
body.gc-archive #secondary .wp-polls {
  padding: 4px 12px 10px;
}

body.gc-article #footer2,
body.gc-archive #footer2 {
  box-shadow: 0 -8px 22px rgba(13, 71, 161, 0.08);
}

@media (max-width: 900px) {
  /* Sidebar is desktop-only — too heavy on phones */
  body.gc-article #container.two-columns-right #secondary,
  body.gc-archive #container.two-columns-right #secondary,
  body.gc-article #secondary.sidey,
  body.gc-archive #secondary.sidey {
    display: none !important;
  }
  body.gc-article #container.two-columns-right #content,
  body.gc-archive #container.two-columns-right #content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.gc-article #container.two-columns-right,
  body.gc-archive #container.two-columns-right {
    padding: 0 10px;
    margin: 8px auto 16px;
  }
  body.gc-article #content {
    padding: 14px 14px 16px;
  }
  body.gc-archive #content {
    padding: 0;
    grid-template-columns: 1fr;
  }
  body.gc-article h1.entry-title,
  body.gc-archive h1.page-title {
    font-size: 22px !important;
  }
  body.gc-article .entry-content img.alignright,
  body.gc-article .entry-content img.alignleft {
    float: none !important;
    display: block;
    margin: 0 auto 14px !important;
    max-width: 100%;
    height: auto;
  }
  body.gc-article .entry-content iframe {
    height: 280px;
  }
  body.gc-archive #content > article:hover {
    transform: none;
  }
}
