/* Country-first residence browsing and grouped Greek services. */
.category-tabs { flex-wrap: wrap; overflow: visible; }
.hierarchy-filters { padding: 20px 0 18px; border-bottom: 1px solid #e2dfd2; }
.hierarchy-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.hierarchy-heading h3 { margin: 0; font-size: 16px; font-weight: 600; color: #203d34; display: flex; gap: 10px; align-items: center; }
.hierarchy-heading p { margin: 4px 0 0; color: #718071; font-size: 12px; line-height: 1.9; }
.hierarchy-heading .text-button { flex-shrink: 0; font-size: 12px; }
.hierarchy-filters .hierarchy-heading:only-child { margin-bottom: 0; }
.hierarchy-options { display: flex; flex-wrap: wrap; gap: 8px; }
.hierarchy-options button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 12px; background: #fffdf8; color: #596d61; border: 1px solid #ddd9cb; border-radius: 3px; text-align: left; font-size: 12px; line-height: 1.8; }
.hierarchy-options button:hover { background: #f0f0e6; border-color: #a9b5a4; }
.hierarchy-options button.active { background: #e8ede2; color: #203d34; border-color: #7d947f; font-weight: 600; }
.hierarchy-options button span { color: #788574; font-size: 11px; font-weight: 400; }
.hierarchy-options button:focus-visible,.country-group-card button:focus-visible { outline: 2px solid #53765b; outline-offset: 3px; }
.hierarchy-subsection { margin-top: 16px; padding-top: 15px; border-top: 1px dashed #ddd9cb; }
.hierarchy-subsection > p { margin: 0 0 10px; color: #718071; font-size: 12px; }
.country-group-card { display: flex; flex-direction: column; gap: 18px; padding: 26px; background: #fffdf7; border: 1px solid #dedbce; border-radius: 4px; transition: border-color .18s ease,box-shadow .18s ease; }
.country-group-card:hover { border-color: #8f9c87; box-shadow: 0 8px 22px rgba(38,57,42,.05); }
.country-group-heading { display: flex; align-items: center; gap: 14px; }
.country-group-heading .country-flag { width: 40px; height: 27px; flex-shrink: 0; }
.country-group-heading h3 { margin: 0; color: #203d34; font-family: inherit; font-size: 21px; font-weight: 500; }
.country-group-heading p { color: #8a9384; margin: 5px 0 0; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.country-group-count { margin-left: auto; color: #596d61; font-size: 12px; white-space: nowrap; }
.country-group-card ul { padding-left: 17px; margin: 0; color: #6c7a69; font-size: 13px; line-height: 1.9; flex: 1; }
.country-group-card li + li { margin-top: 5px; }
.country-group-card .country-project-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 8px 0; text-align: left; font: inherit; color: inherit; }
.country-project-link span { min-width: 0; }
.country-project-link strong { flex-shrink: 0; }
.country-group-card .country-project-link:hover { color: #203d34; background: #f0f0e6; }
.country-project-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.country-group-card > button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-top: 17px; margin-top: 2px; border-top: 1px solid #e6e2d6; color: #30523f; font-size: 13px; text-align: left; }
.country-group-card > button:hover { color: #819346; }
@media (max-width: 600px) {
  .hierarchy-filters { padding: 16px 0; }
  .hierarchy-heading { align-items: flex-start; gap: 10px; }
  .hierarchy-heading h3 { font-size: 14px; }
  .hierarchy-heading p,.hierarchy-heading .text-button { font-size: 11px; }
  .hierarchy-options { gap: 7px; }
  .hierarchy-options button { font-size: 11px; min-height: 38px; padding: 7px 10px; }
  .country-group-card { padding: 21px; gap: 15px; }
  .country-group-heading h3 { font-size: 18px; }
  .country-group-card ul { font-size: 12px; }
  .country-group-card > button { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .country-group-card { transition: none; } }
