:root {
  --forest: #204f3d;
  --forest-dark: #0b2a1e;
  --sage: #a8bba3;
  --cream: #fcf9ea;
  --cream-dark: #f7f1dd;
  --sage-light: #e1e7d2;
  --orange: #db9558;
  --muted: #607064;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--sage);
  color: var(--forest-dark);
  font-family: Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
nav a {
  cursor: pointer;
}

.container {
  width: calc(100% - 40px);
  max-width: 900px;
  margin: 0 auto;
}

header {
  background: var(--forest);
}

.logoAndNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brandLogo {
  width: 44px;
  height: 44px;
}

.brandName {
  color: var(--cream);
  font-size: 24px;
}

.brandName span {
  font-weight: 300;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

nav a {
  color: var(--cream);
}

nav a.activePage {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

#languageSelect {
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

main {
  display: flex;
  min-height: calc(100vh - 75px);
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.information {
  display: flex;
  width: 100%;
  height: min(600px, calc(100vh - 123px));
  overflow: hidden;
  border: 2px solid var(--forest);
  border-radius: 12px;
  box-shadow: 7px 8px 0 var(--forest);
}

.parcelMapSide {
  flex: 1 1 auto;
  min-width: 0;
  border-right: 2px solid var(--forest);
}

#map {
  width: 100%;
  height: 100%;
}

.parcelInfoSide {
  position: relative;
  flex: 0 0 320px;
  max-width: 320px;
  overflow-y: auto;
  padding: 30px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.parcelInfoSide::before,
.aboutCard::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--orange);
  content: "";
}

.panelBrand {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 28px;
  letter-spacing: -0.5px;
}

.panelBrand span {
  font-weight: 300;
}

.panelDescription {
  max-width: 290px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.parcelInfoSide hr {
  height: 1px;
  margin-bottom: 24px;
  border: 0;
  background: var(--forest);
  opacity: 0.2;
}

.parcelInfo {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.selectedLabel {
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #db955826;
  color: #b66f36;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.hidden {
  display: none !important;
}

.emptyState {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  color: var(--muted);
  text-align: center;
}

.emptyIcon {
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 48px;
}

.emptyState p {
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 18px;
  font-weight: bold;
}

.emptyState span {
  font-size: 14px;
  line-height: 1.4;
}

#parcelDetails {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#parcelDetails.hidden {
  display: none !important;
}

#parcelNumber {
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 32px;
  line-height: 1;
}

.parcelSize {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin: 4px 0 20px;
  padding: 16px 18px;
  border: 1px solid #204f3d45;
  border-radius: 12px;
  background: var(--sage-light);
  box-shadow: 0 5px 14px #204f3d14;
}

.parcelSize p:first-child,
.parcelInfo [data-i18n="referenceNumber"],
.parcelInfo [data-i18n="dataSource"] {
  color: var(--muted);
  font-size: 13px;
}

.parcelInfo [data-i18n="dataSource"] {
  margin-top: 10px;
}

#parcelArea {
  color: var(--forest);
  font-size: 29px;
}

#cadastralReference,
#parcelDetails > p.bold {
  color: var(--forest);
  font-size: 15px;
}

#importantButton {
  width: 100%;
  margin-top: 20px;
  padding: 13px 0;
  border: 0;
  border-radius: 9px;
  background: var(--forest);
  color: var(--cream);
  font-weight: bold;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#importantButton:hover {
  box-shadow: 0 5px 12px #204f3d35;
  transform: translateY(-2px);
}

.aboutMain {
  min-height: calc(100vh - 75px);
}

.aboutCard {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 2px solid var(--forest);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  box-shadow: 7px 8px 0 var(--forest);
}

.aboutEyebrow {
  margin-bottom: 12px;
  padding-top: 4px;
  color: var(--orange);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1.5px;
}

.aboutCard h1 {
  max-width: 560px;
  margin-bottom: 16px;
  color: var(--forest);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -1.5px;
}

.aboutLead {
  max-width: 620px;
  margin-bottom: 32px;
  color: #496355;
  font-size: 17px;
  line-height: 1.55;
}

.aboutGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.aboutItem {
  min-height: 150px;
  padding: 20px;
  border: 1px solid #204f3d40;
  border-radius: 10px;
  background: var(--sage-light);
}

.aboutItem h2 {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 18px;
}

.aboutItem p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.aboutSource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #204f3d35;
}

.aboutSourceLabel {
  color: var(--muted);
  font-size: 13px;
}

.aboutSource a {
  color: var(--forest);
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobileWarning {
  display: none;
}

@media (max-width: 800px), (orientation: portrait) {
  .mobileWarning {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--forest);
    color: var(--cream);
    text-align: center;
  }

  .rotateIcon {
    margin-bottom: 15px;
    font-size: 60px;
  }

  .mobileWarning p {
    font-size: 20px;
    font-weight: bold;
  }
}
