/* ------------------------------------------ Variables ------------------------------------------*/

:root {
  --primary-color: #ff530a;
  --secondary-color: #000;
  --background-color: #fcfcfc;
  --foreground-color: #f6f6f6;
  --text-color: #2b2f34;
  --divider-color: #c9c9c985;
  --background-image: url("../media/backgrounds/bg.png");
  --logo-image: url("../media/logo/logo.png");
  --icons-color: invert(0);
  --direction: ltr;
  --font-family: "Lato", "Cairo", serif;
  --text-size: 1.2vw;
  --text-size-lg: 2.4vw;
  --text-size-md: 1.8vw;
  --text-size-sm: 1vw;
  --px-sm: 2vw;
  --px-lg: 6vw;
  --py-sm: 1vh;
  --py-lg: 2vh;
  --gap: 1.5vw;
  --raduis-lg: 20px;
  --raduis-md: 10px;
  --raduis-sm: 5px;
}

/*--------- Dark theme -------- */
:root {
  --primary-color: #ff530a;
  --secondary-color: #fff;
  --background-color: #181818;
  --foreground-color: #232323;
  --text-color: #eee;
  --divider-color: #57575785;
  --background-image: url("../media/backgrounds/bg-dark.png");
  --logo-image: url("../media/logo/logo-dark.png");
  --icons-color: invert(1);
}

/* --------- Red theme -------- */
/* :root {
  --primary-color: #c0aa01;
  --secondary-color: #fff;
  --background-color: #5f0000;
  --foreground-color: #420000;
  --text-color: #eee;
  --background-image: url("../media/backgrounds/bg-red.png");
} */

/* ------------------------------------------ Global ------------------------------------------*/

html {
  font-family: var(--font-family);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-size: var(--text-size);
  background-color: var(--background-color);
  color: var(--text-color);
  background-image: var(--background-image);
  background-size: contain;
  background-repeat: repeat;
  user-select: none;
}

body:dir(rtl) {
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.1s ease;
}

a.active,
a:hover,
a:active {
  color: var(--primary-color);
}

h1 {
  font-size: var(--text-size-lg);
  margin: 0;
  margin-bottom: 1vh;
}

h3 {
  font-size: var(--text-size-md);
  margin: 0;
  margin-bottom: 1vh;
}

button {
  padding: var(--py-sm) var(--px-sm);
  font-family: var(--font-family);
  font-size: var(--text-size);
  border-radius: var(--raduis-lg);
  background-color: var(--secondary-color);
  color: var(--background-color);
  border-color: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

button:hover,
button:active {
  background-color: var(--primary-color);
  color: var(--background-color);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 3vw;
}

section.content {
  padding: 0 var(--px-lg);
}

.navbar,
.sidebar {
  display: none;
}

/* ------------------------------------------ Header ------------------------------------------*/

header {
  position: sticky;
  top: 0vh;
  display: flex;
  align-items: center;
  padding: calc(var(--py-lg) * 2) var(--px-lg);
  background-color: var(--foreground-color);
  border-bottom: 1px solid var(--divider-color);
  z-index: 9;
}

header:hover {
  z-index: 99;
}

header > a {
  font-size: var(--text-size-md);
  font-weight: 900;
  text-transform: uppercase;
}

header > a > span {
  font-weight: lighter;
  color: var(--primary-color);
  text-transform: lowercase;
}

header > nav > ul {
  display: flex;
  gap: calc(var(--gap) * 2);
  font-size: var(--text-size);
}

header > .contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap);
  inset-inline-end: var(--px-lg);
  position: absolute;
  z-index: 9;
}

header > .contact img[alt="icon"] {
  display: none;
}

.languages-dropdown {
  position: relative;
  display: inline-block;
}

header > .contact > a,
.languages-dropdown > a {
  position: relative;
  background-color: var(--background-color);
  padding: var(--py-sm) var(--px-sm);
  border-radius: var(--raduis-lg);
  cursor: pointer;
}

.languages-dropdown > .dropdown-menu {
  display: none;
  position: absolute;
  top: 4vh;
  background-color: var(--background-color);
  border: 1px solid var(--divider-color);
  border-radius: var(--raduis-md);
  width: 100%;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 9;
}

.languages-dropdown > .dropdown-menu a {
  color: var(--text-color);
  padding: 10px;
  border-radius: inherit;
  text-decoration: none;
  display: block;
}

.languages-dropdown > .dropdown-menu a:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

.languages-dropdown:hover .dropdown-menu,
.languages-dropdown:active .dropdown-menu {
  display: block;
}

/* ------------------------------------------ Filter ------------------------------------------*/
.filter {
  position: sticky;
  top: calc(var(--text-size-lg) + var(--py-lg) * 2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--py-lg) calc(var(--px-lg) + var(--gap));
  background-color: var(--foreground-color);
  border-bottom: 1px solid var(--divider-color);
  z-index: 9;
}

.filter label {
  font-size: var(--text-size-sm);
  margin-inline-end: calc(var(--gap) / 2);
}

.filter input:not(.search input),
.filter select {
  font-size: var(--text-size);
  margin-inline-end: var(--gap);
  cursor: pointer;
}

.filter input,
.filter select {
  padding: var(--py-sm);
  border: 0.5px solid var(--divider-color);
  border-radius: var(--raduis-md);
}

.filter .ratings option {
  color: goldenrod;
}

/* ------------------------------------------ Heading ------------------------------------------*/

section.heading {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: var(--py-sm) var(--px-sm);
  border-bottom: 1px solid var(--divider-color);
}

section.heading:not(:first-child) {
  margin: var(--gap) 0;
}

section.heading > p {
  font-size: var(--text-size);
  font-weight: bold;
  margin: 0;
}

section.heading > p > span {
  color: goldenrod;
}

/* ------------------------------------------ Hero ------------------------------------------*/

.hero {
  position: relative;
  display: flex;
  gap: calc(var(--gap) * 2);
  padding: var(--py-lg) var(--px-lg);
  height: 80vh;
  background: linear-gradient(
    180deg,
    var(--foreground-color) 30%,
    rgba(255, 255, 255, 0) 100%
  );
  margin-bottom: 2vh;
}

section.info {
  position: relative;
  flex: 1 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

section.info > h1 {
  font-size: var(--text-size-lg);
  max-width: 85%;
}

section.info > h3 {
  font-size: var(--text-size);
  margin: 2vh 0;
}

section.info > .about {
  display: flex;
  align-items: center;
  gap: calc(var(--gap) * 2);
  margin-bottom: 2vh;
  font-size: var(--text-size-sm);
}

section.info > .about > button {
  font-size: var(--text-size);
}

section.info > .stats {
  position: relative;
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin: 1vh 0;
}

section.info > .stats > .stat > h3 {
  font-size: var(--text-size-lg);
  margin: 0;
}

section.info > .stats > .stat > p {
  font-size: var(--text-size-sm);
  margin: 0;
}

section.map {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url(../media/map-backgroundt-texture.jpg);
  background-size: cover;
  background-position: center;
  border-radius: var(--raduis-lg);
}

section.map > img {
  width: 100%;
  height: auto;
  border-radius: inherit;
  object-fit: contain;
}

area[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 1vh;
  inset-inline-end: 1vw;
  background-color: var(--background-color);
  color: var(--secondary-color);
  padding: var(--py-sm) var(--px-sm);
  font-size: var(--text-size);
  border-radius: var(--raduis-lg);
}

/* ------------------------------------------ Cards ------------------------------------------*/
section.content.full {
  padding: var(--py-lg) var(--px-lg);
  background: linear-gradient(
    180deg,
    var(--foreground-color) 30%,
    rgba(255, 255, 255, 0) 100%
  );
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.card {
  flex: 1 1 calc(33.3% - var(--gap));
  display: flex;
  flex-direction: column;
  border-radius: var(--raduis-lg);
  background-color: var(--background-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.2s ease;
}

.card > .card-header {
  height: 28vh;
  background-size: cover;
}

.card > .card-body {
  padding: var(--py-lg) var(--px-sm);
}

.card > .card-body > p {
  font-size: var(--text-size);
  opacity: 0.5;
  line-height: 1.2;
}

.card > .card-footer {
  padding: var(--px-sm);
  padding-top: 0;
}

.card-sm {
  position: relative;
  flex: 1 1 calc(33.3% - var(--gap));
  aspect-ratio: 1 / 1;
  border-radius: var(--raduis-lg);
  transition: all 0.2s ease;
}

.card-sm > img,
.card-sm > .overlay {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.card-sm > .overlay {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  background: linear-gradient(0deg, #4d2500 0%, rgba(0, 0, 0, 0) 100%);
  transition: all 0.2s ease;
  cursor: pointer;
}

.card-sm:nth-child(2) > .overlay {
  background: linear-gradient(0deg, #2c4e00 0%, rgba(0, 0, 0, 0) 100%);
}

.card-sm:nth-child(3) > .overlay {
  background: linear-gradient(0deg, #4e0000 0%, rgba(0, 0, 0, 0) 100%);
}

.card-sm > .overlay > p {
  position: absolute;
  color: white;
  font-weight: bolder;
  font-size: var(--text-size);
  inset-inline-start: 10px;
  bottom: 0;
}

.card-full {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-bottom: 6vh;
  border-radius: var(--raduis-lg);
  background-color: var(--foreground-color);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
}

.card-full > .info {
  flex: 0 0 80%;
  padding: var(--px-sm);
}

.card-full > .info > h3 {
  color: var(--primary-color);
}

.card-full > .info > p {
  font-size: calc(var(--text-size) - 2px);
  width: 80%;
  opacity: 0.8;
}

.card-full > .info > p > span {
  font-weight: bold;
}

.card-full > .thumb {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  border-radius: 0 var(--raduis-lg) var(--raduis-lg) 0;
}

.card-full > .thumb:dir(rtl) {
  border-radius: var(--raduis-lg) 0 0 var(--raduis-lg);
}

.card-full > .thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.card-informative {
  position: relative;
  flex: 1 1 calc(33.3% - var(--gap));
  display: flex;
  flex-direction: column;
  text-align: center;
  border-radius: var(--raduis-lg);
  background-color: var(--background-color);
  color: white;
  background-size: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: var(--px-lg) var(--px-lg) var(--px-sm) var(--px-lg);
  transition: all 0.2s ease;
}

.card-informative > h1 {
  font-weight: 900;
}

.card-informative > button {
  opacity: 0.6;
}

.card-informative > button:hover {
  opacity: 1;
  background-color: var(--background-color);
  color: var(--text-color);
}

.card-informative > .overlay {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: linear-gradient(
    0deg,
    rgb(167, 108, 59) 20%,
    rgba(167, 108, 59, 0.2) 100%
  );
}

.card-informative:nth-child(2) > .overlay {
  background: linear-gradient(
    0deg,
    rgb(17, 117, 239) 20%,
    rgba(17, 117, 239, 0.2) 100%
  );
}

.card-informative:nth-child(3) > .overlay {
  background: linear-gradient(
    0deg,
    rgb(44, 80, 80) 20%,
    rgba(44, 80, 80, 0.2) 100%
  );
}

.card-informative:nth-child(4) > .overlay {
  background: linear-gradient(
    0deg,
    rgb(97, 91, 24) 20%,
    rgba(97, 91, 24, 0.2) 100%
  );
}

.card-informative h1,
.card-informative p,
.card-informative button {
  z-index: 1;
}

.card-image {
  position: relative;
  flex: 1 1 calc(50% - var(--gap));
  aspect-ratio: 1 / 1;
  border-radius: var(--raduis-md);
  background-color: var(--background-color);
  transition: all 0.2s ease;
  cursor: zoom-in;
}

.card-image:hover {
  opacity: 0.6;
}

.gallery > .card-image {
  flex: 0 0 calc(50% - var(--gap));
}

.gallery > .cards > .card-image:last-child > .overlay {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.373);
  color: white;
  font-size: var(--text-size-lg);
}

.card-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.card-fact {
  flex: 1 1 30%;
  display: flex;
  background-color: var(--background-color);
  border-radius: var(--raduis-lg);
  padding: var(--px-sm);
  gap: var(--gap);
  border: 1px solid var(--divider-color);
  transition: all 0.2s ease;
}

.card-fact > .icon {
  position: relative;
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  padding: var(--py-lg);
  border-radius: 50%;
  background-color: var(--foreground-color);
  border: 1px solid var(--primary-color);
}

.card-fact > .icon > img {
  width: 15px;
  object-fit: cover;
  filter: var(--icons-color);
}

.card-fact h1 {
  font-size: var(--text-size);
}

.card-fact p {
  margin: 0;
  font-size: var(--text-size-sm);
}

.card:hover,
.card-sm:hover,
.card-fact:hover,
.card-informative:hover {
  opacity: 1;
  transform: scale(1.01);
}

.cards:hover .card:not(:hover),
.cards:hover .card-informative:not(:hover),
.cards:hover .card-sm:not(:hover),
.cards:hover .card-fact:not(:hover) {
  opacity: 0.6;
}

/* ------------------------------------------ Gallery ------------------------------------------*/

section.gallery {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
}

section.gallery > .cards {
  flex-wrap: wrap;
}

/* ------------------------------------------ Overview ------------------------------------------*/

section.overview {
  display: flex;
  gap: var(--gap);
}

section.overview > .content {
  flex: 0 0 60%;
}

section.overview > .content > .facts {
  position: relative;
  flex-direction: row;
  flex-wrap: wrap;
}

section.overview > .ratings {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--background-color);
  border-radius: var(--raduis-lg);
  padding: var(--px-sm);
  gap: var(--gap);
  border: 1px solid var(--divider-color);
}

section.overview > .ratings > .rating {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--py-sm) 0;
  border-bottom: 1px solid var(--divider-color);
}

section.overview > .ratings > .rating:last-child {
  border-bottom: none;
}

section.overview > .ratings > .rating > .rating-header {
  display: flex;
  align-items: center;
  gap: var(--gap);
}

section.overview > .ratings > .rating > .rating-header > span {
  position: absolute;
  top: 2vh;
  inset-inline-end: 0;
  opacity: 0.5;
  font-size: var(--text-size-sm);
}

section.overview > .ratings > .rating > .rating-header > .profile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  flex: 0 0 10%;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  padding: var(--py-sm);
}

section.overview > .ratings > .rating > .rating-header > .profile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

section.overview > .pricing {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--background-color);
  border-radius: var(--raduis-lg);
  padding: var(--px-sm);
  gap: var(--gap);
  border: 1px solid var(--divider-color);
}

section.overview > .pricing > h1 {
  border-bottom: 1px solid var(--divider-color);
  padding: var(--py-lg) 0;
}

section.overview > .pricing > h1 > span {
  font-size: var(--text-size-sm);
  font-size: 300;
  opacity: 0.5;
}

section.overview > .pricing label {
  color: var(--text-color);
}

section.overview > .pricing input,
section.overview > .pricing select {
  width: 100%;
  padding: var(--py-lg) 0;
  font-size: var(--text-size);
  border-radius: var(--raduis-sm);
  outline: none;
  border: 1px solid var(--divider-color);
  cursor: pointer;
}

section.overview > .pricing > .inputs-row {
  display: flex;
  gap: var(--gap);
  justify-items: space-between;
}

section.overview > .pricing .input-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) / 2);
  font-size: var(--text-size-sm);
}

section.overview > .pricing .input-column > input {
  flex: 1 1 calc(50% - var(--gap));
  font-size: var(--text-size-sm);
}

section.overview > .pricing > .price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

section.overview > .pricing > input[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  font-size: var(--text-size-md);
  border-radius: var(--raduis-lg);
  cursor: pointer;
}

/* ------------------------------------------ Form ------------------------------------------*/

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75vh;
  padding: var(--py-lg) var(--px-sm);
  gap: var(--gap);
  background-color: var(--background-color);
  border-radius: var(--raduis-lg);
  border: 1px solid var(--divider-color);
}

.contact-container .info {
  flex: 0 0 40%;
}

.contact-container .info h1 {
  color: var(--primary-color);
}

.contact-container .info p {
  font-size: var(--text-size);
  opacity: 0.7;
}

form {
  flex: 1 1 60%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--px-sm);
  gap: var(--gap);
}

form label {
  color: var(--primary-color);
  font-size: var(--text-size);
}

form input,
form select,
form textarea {
  background-color: var(--foreground-color);
  font-family: var(--font-family);
  color: var(--text-color);
  padding: var(--py-lg) var(--px-sm);
  border: none;
  outline: none;
  border-radius: var(--raduis-sm);
}

form input[type="submit"] {
  font-size: var(--text-size-md);
  background-color: var(--primary-color);
  color: var(--background-color);
}

form textarea {
  flex: 1 1 auto;
}

/* ------------------------------------------ Modal ------------------------------------------*/

.modal-container {
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  top: 0;
  inset-inline-start: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000ba;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.modal-container:target {
  display: flex;
  opacity: 1; /* Show with fade-in effect */
  animation: fadeIn 0.3s ease;
}

.modal-container:target .modal {
  transform: scale(1);
}

.modal {
  width: 60%;
  height: 90%;
  overflow-y: scroll;
  background-color: var(--background-color);
  border-radius: var(--raduis-lg);
  transform: scale(0.8);
  animation: scaleIn 0.3s ease;
  box-sizing: border-box;
}

.modal .modal-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--background-color);
  padding: var(--py-lg) var(--px-sm);
  z-index: 9;
}

.modal .modal-header > .close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: var(--text-size-sm);
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.178);
  border-radius: 50%;
}

.modal .modal-hero {
  position: relative;
  width: 100%;
  height: 50vh;
}

.modal .modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
}

.modal .modal-hero .overlay {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    var(--background-color) 30%,
    rgba(255, 255, 255, 0) 100%
  );
}

.modal .modal-info {
  position: relative;
  margin-top: -15vh;
  padding: var(--py-lg) var(--px-sm);
  z-index: 1;
}

.modal .modal-info > article {
  background-color: var(--foreground-color);
  padding: var(--px-sm);
  border-radius: var(--raduis-lg);
  margin-bottom: var(--gap);
}

.modal .modal-info  p {
  font-size: var(--text-size-sm);
  opacity: 0.4;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

/* ------------------------------------------ Footer ------------------------------------------*/

footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: calc(var(--gap) * 2);
  padding: var(--px-lg) var(--px-lg) var(--py-lg) var(--px-lg);
  margin-top: var(--py-lg);
  height: 10vh;
  background: linear-gradient(
    0deg,
    var(--foreground-color) 30%,
    rgba(255, 255, 255, 0) 100%
  );
}

footer p {
  font-size: var(--text-size-sm);
}

footer span {
  color: var(--primary-color);
}

/* ------------------------------------------ Loader ------------------------------------------*/

.loader {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    180deg,
    var(--foreground-color) 5%,
    var(--background-color) 100%
  );
  z-index: 8;
  animation: fadeOutLoader 3s forwards;
}

.loader img {
  width: 20%;
}


@keyframes fadeOutLoader {
  0% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* ------------------------------------------ Scrollbar ------------------------------------------*/

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--foreground-color);
  border-radius: var(--raduis-lg);
}
