/* =========================================================
   site.css : the only stylesheet
   ========================================================= */

/* Design tokens: colors, fonts etc*/
:root {
  --ink:   #023047;   /* navy: nav, footer, headings */
  --gold:  #8A6D3B;   /* accent for links and buttons */
  --text:  #2b2b2b;
  --muted: #6b7280;
  --line:  #e5e7eb;
  --warm:  #F4F1EC;   /* soft background behind the intro */
  --font-ui: Urbanist, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

/* Self-hosted Urbanist (delete this block to use system fonts only) (downloaded font)*/
@font-face {
  font-family: 'Urbanist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/urbanist-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Urbanist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/urbanist-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/*  Base  */
* { padding: 0; margin: 0; }
html, body { background-color: #ffffff; font-size: medium; font-weight: 400; font-style: normal; }
body, h1, h2, h3, h4, h5, h6 { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Navigation bar */
.header-top { background-color: var(--ink); color: #fff; text-align: center; }
.navbar { z-index: 1000; height: 76px; padding: 0; position: relative; }
.nav-link, .navbar-brand { color: #fff !important; font-size: 0.85rem; }
.nav-link:hover { color: #fff !important; }
.language-switch {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px;
  border: 1px solid rgba(255,255,255,0.55); border-radius: 4px;
  color: rgba(255,255,255,0.7); font-size: 0.78rem; font-weight: 600; line-height: 1;
  text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease;
}
.language-switch:hover { color: #fff; text-decoration: none; background-color: rgba(255,255,255,0.1); }
.language-switch .is-active { color: #fff; }
.language-switch:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.navbar-dark .navbar-toggler-icon,
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-size: 100% 100%; background-repeat: no-repeat;
}
.navbar-collapse.collapse { background-color: var(--ink); transition: height 0.35s ease; }
.navbar-collapse.collapse.show {
  background-color: var(--ink); padding: 10px 15px;
  position: absolute; top: 76px; right: 0; left: 0; z-index: 1050;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
@media (min-width: 768px) {
  .navbar { display: flex !important; }
  .navbar-language-switch { margin-left: auto; }
  .navbar-collapse { flex-grow: 0; }
}
.navbar .dropdown-item { text-transform: uppercase; }
@media (max-width: 767.98px) {
  .navbar-collapse .navbar-nav { flex-direction: column; gap: 10px; }
  .navbar-collapse .nav-item { margin-left: 0; }
  .navbar-collapse .nav-link { color: #fff !important; font-size: 1rem; padding: 8px 15px; }
}

/* Footer */
footer, .footer {
  position: relative; margin-top: clamp(60px, 8vw, 120px);
  padding: clamp(15px, 3vw, 20px) 10px; background-color: var(--ink); color: #fff;
  text-align: center; z-index: 1; font-size: clamp(10px, 1.5vw, 14px);
}
footer a { color: inherit; margin: 0 10px; text-decoration: none; }
@media (max-width: 768px) { footer { margin-top: 80px; } }

/* Homepage: intro block and article cards */
.about_me {
  width: 100%; padding: clamp(20px, 5vw, 60px) clamp(15px, 5vw, 40px);
  background: linear-gradient(0deg, white 25%, var(--warm) 100%);
  display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; text-align: justify;
  gap: clamp(20px, 5vw, 40px); flex-wrap: wrap; overflow: visible;
}
.about_me img { width: clamp(150px, 25vw, 225px); height: clamp(150px, 25vw, 225px); border-radius: 50%; object-fit: cover; }

.popular-destinations-wrapper {
  display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 20px);
  padding: 0 40px; justify-content: space-between;
}
.Popular_Destinations { color: #444444; font-size: clamp(18px, 2vw, 24px); font-family: var(--font-ui); font-weight: 600; line-height: 1.2; text-align: left; }
.See_All { color: var(--gold); font-size: clamp(18px, 2vw, 24px); font-family: var(--font-ui); font-weight: 700; line-height: 1.2; text-align: right; text-decoration: none; }
.See_All:hover { text-decoration: underline; }

.destination-cards-container {
  width: 100%; padding: clamp(20px, 5vw, 30px) clamp(15px, 5vw, 40px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; text-align: justify;
  gap: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 40px); box-sizing: border-box;
}
.destination-card {
  flex: 0 1 calc(50% - 20px); display: flex; flex-direction: row; border-radius: 10px;
  box-shadow: 0 2px 12px rgba(2, 48, 71, 0.08); overflow: hidden; background: #fff; height: 250px;
}
.destination-card img { width: 40%; object-fit: cover; border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.destination-content { flex: 1; padding: clamp(8px, 1.5vw, 15px); display: flex; flex-direction: column; gap: clamp(5px, 1vw, 10px); }

.city { color: #444444; font-size: clamp(16px, 1.5vw, 20px); font-family: var(--font-ui); font-weight: 600; line-height: 1.2; }
.country { color: #444444; font-size: clamp(12px, 1vw, 15px); font-family: var(--font-ui); font-weight: 400; line-height: 1.2; }
.Publish_Date { color: #8F8F8F; font-size: clamp(8px, 1vw, 10px); font-family: var(--font-ui); font-weight: 400; line-height: 1.2; }
.date { color: #444444; font-size: clamp(8px, 1vw, 10px); font-family: var(--font-ui); font-weight: 500; line-height: 1.2; }
.destinations_main_text { font-size: clamp(13px, 1vw, 14px); font-weight: 300; font-family: var(--font-ui); line-height: 1.4; }
.View_in_detail { color: var(--gold); font-size: clamp(12px, 1.2vw, 15px); font-family: var(--font-ui); font-weight: 600; }

@media (max-width: 768px) {
  .about_me { flex-direction: column; padding: 30px 15px; }
  .destination-cards-container { justify-content: center; }
  .destination-card { flex-direction: column; width: 90%; height: auto; }
  .destination-card img { width: 100%; height: 200px; border-radius: 10px 10px 0 0; }
  .destination-content { padding: 10px; }
}
@media (max-width: 480px) {
  .Popular_Destinations, .See_All { font-size: clamp(16px, 4vw, 20px); }
  .city { font-size: clamp(14px, 3vw, 18px); }
  .country, .date, .Publish_Date { font-size: clamp(10px, 2.5vw, 12px); }
  .destinations_main_text { font-size: 13px; }
  .View_in_detail { font-size: clamp(11px, 2.5vw, 13px); }
}

/* Country page (destination page)*/
.country-head { padding: clamp(32px,5vw,56px) clamp(15px,5vw,40px) 0; }
.country-head h1 { font: 700 clamp(32px,4.5vw,48px)/1.15 var(--font-serif); color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em; }
.country-head p { font: 400 16px/1.6 var(--font-ui); color: var(--muted); margin: 0 0 6px; max-width: 640px; }
.card-soon { opacity: 0.75; }
.soon-label { font: 600 clamp(12px,1.2vw,15px)/1.2 var(--font-ui); color: var(--muted); }

/* Article page */
.article-layout {
  max-width: 1200px; margin: 0 auto; padding: clamp(32px,5vw,64px) clamp(16px,4vw,40px) 0;
  display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(40px,6vw,72px); align-items: start;
}
.article { max-width: 720px; text-align: left; }
.article h1 { font: 700 clamp(30px,4vw,44px)/1.2 var(--font-serif); color: var(--ink); margin: 0 0 20px; letter-spacing: -0.01em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 32px; font: 500 14px/1.4 var(--font-ui); color: var(--muted); }
.article-hero { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin: 0 0 44px; }
.article-body p { font: 400 19px/1.8 var(--font-serif); color: var(--text); margin: 0 0 1.4em; overflow-wrap: break-word; }
/* Justified on every screen size. Hyphenation (needs lang="tr" on the article) is what keeps phone lines from getting gappy. */
.article-body p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.article-body h2 { font: 700 28px/1.25 var(--font-serif); color: var(--ink); margin: 2em 0 0.6em; }
.article-body blockquote { margin: 2em 0; padding-left: 22px; border-left: 3px solid var(--gold); font: italic 400 22px/1.6 var(--font-serif); color: var(--ink); }
.article-body figure { margin: 2em 0; }
.article-body figure img { width: 100%; border-radius: 10px; display: block; }
.article-body figcaption { font: 400 14px/1.5 var(--font-ui); color: var(--muted); margin-top: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; }

.article-side { position: sticky; top: 24px; }
.side-title { font: 700 22px/1.3 var(--font-serif); color: var(--ink); margin: 0 0 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.side-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.side-text { display: flex; flex-direction: column; gap: 4px; }
.side-city { font: 600 18px/1.25 var(--font-serif); color: var(--ink); }
.side-meta { font: 400 13px/1.4 var(--font-ui); color: var(--muted); }
.side-card:hover .side-city, .side-card:focus-visible .side-city { color: var(--gold); text-decoration: underline; }
.side-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0,1fr); }
  .article-side { position: static; }
  .side-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); column-gap: 32px; }
  .article-body p { font-size: 18px; }
}

/* Flip photo cards
   IDLE RIGHT NOW: nothing on the site uses these right now (from the first version */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 2em 0; }
.flip-card { perspective: 1000px; aspect-ratio: 3/2; outline: none; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner, .flip-card:focus .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flip-card-front img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.flip-card-back {
  transform: rotateY(180deg); background: var(--ink); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px;
}
.flip-title { font: 700 22px/1.25 var(--font-serif); margin-bottom: 6px; }
.flip-sub { font: 400 15px/1.4 var(--font-ui); color: #d6e0e6; }
@media (prefers-reduced-motion: reduce) { .flip-card-inner { transition: none; } }

/* Carousel
   IDLE RIGHT NOW: no page uses a carousel now (from the first version)
   Works with Bootstrap's carousel markup. */
.carousel-caption h3 {
  font-family: 'Lucida Sans Unicode';
  font-size: 4vw; /* scales with viewport width */
  text-transform: capitalize;
}
.carousel-caption p {
  font-family: 'Lucida Sans Unicode';
  font-size: 2vw;
  text-transform: capitalize;
}
.carousel-wrapper {
  width: 75%;
  margin: 2px auto; /* top/bottom margin + horizontally centered */
}

/* Flip cards from the old page 
   IDLE RIGHT NOW and commented out on purpose: section 9 above is the
   updated version and uses the same class names. When uncomment this ,
   and delete section 9 first so they don't clash.

.flip-card { background-color: transparent; width: 300px; height: 200px; border: 1px solid #f1f1f1; perspective: 1000px; margin: 0 auto; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip-card-front { background-color: #D0EDDD; color: black; }
.flip-card-back { background-color: rgb(121, 54, 23); color: white; transform: rotateY(180deg); }
*/

/*About page */
.about-page { max-width: 1100px; margin: 0 auto; padding: clamp(40px,6vw,88px) clamp(16px,4vw,40px) 0; }
.about-page, .about-page p { font-family: var(--font-ui); }
.about-hero { display: grid; grid-template-columns: minmax(0,380px) minmax(0,1fr); gap: clamp(40px,7vw,96px); align-items: center; }
.about-portrait { position: relative; width: 100%; max-width: 380px; }
.about-portrait::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold); border-radius: 999px 999px 18px 18px; z-index: 0; }
.about-portrait img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 999px 999px 18px 18px; }
.about-intro h1 { font: 700 clamp(38px,5.4vw,60px)/1.1 var(--font-serif); color: var(--ink); margin: 0 0 14px; letter-spacing: -0.015em; }
.about-sub { font-size: 19px; line-height: 1.5; color: var(--gold); font-weight: 600; margin: 0 0 28px; text-align: justify; }
.about-text { font: 400 19px/1.8 var(--font-serif); color: var(--text); margin: 0 0 1.2em; max-width: 60ch; text-align: justify; }
.about-count { font-size: 15px; color: var(--muted); margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); max-width: 60ch; }
.about-topics { margin-top: clamp(64px,9vw,112px); }
.about-topics h2, .about-contact h2 { font: 700 clamp(26px,3vw,32px)/1.2 var(--font-serif); color: var(--ink); margin: 0 0 28px; }
.about-topics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 0 clamp(24px,4vw,56px); }
.about-topic { padding: 22px 0 8px; border-top: 1px solid var(--line); }
.about-topic h3 { font: 700 21px/1.3 var(--font-serif); color: var(--ink); margin: 0 0 8px; }
.about-topic p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0; }
.about-contact { margin-top: clamp(64px,9vw,112px); background: var(--ink); color: #fff; border-radius: 18px; padding: clamp(32px,5vw,56px); }
.about-contact h2 { color: #fff; margin-bottom: 12px; }
.about-contact p { font-size: 17px; line-height: 1.65; color: #d6e0e6; margin: 0 0 26px; max-width: 56ch; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.about-button { display: inline-block; background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; padding: 13px 26px; border-radius: 999px; text-decoration: none; }
.about-button:hover { background: #f1ede6; }
.about-link { color: #fff; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.about-button:focus-visible, .about-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 800px) {
  .about-hero { grid-template-columns: minmax(0,1fr); justify-items: center; }
  .about-portrait { max-width: 280px; margin-bottom: 16px; }
  .about-intro { width: 100%; }
}

/* Small notices  */
.lang-note { font: 500 14px/1.5 var(--font-ui); color: var(--muted); background: #f6f6f4; border-left: 3px solid var(--gold); padding: 10px 14px; margin: 0 0 24px; border-radius: 0 8px 8px 0; }

/* Homepage intro  */
.home-intro { flex: 1 1 320px; max-width: 640px; }
.home-title { font: 700 clamp(30px,4vw,40px)/1.15 var(--font-serif); color: var(--ink); margin: 0 0 16px; letter-spacing: -0.01em; }
.home-text { font: 400 16px/1.7 var(--font-ui); color: #444444; margin: 0 0 12px; }
.home-name { color: var(--gold); font-weight: 700; }
.home-link { display: inline-block; margin-top: 8px; font: 600 16px/1.3 var(--font-ui); color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.latest { background: #fff; }
.popular-destinations-wrapper h2 { margin: 0; }

/* Pagination (all articles page)  */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 8px clamp(15px,5vw,40px) 0; font-family: var(--font-ui); }
.page-num, .page-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; background: #fff;
}
.page-num { padding: 0; }
a.page-num:hover, a.page-btn:hover { border-color: var(--ink); }
.page-num.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-btn.disabled { opacity: 0.4; }
.page-gap { color: var(--muted); padding: 0 4px; }
.page-num:focus-visible, .page-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Contact page (no form) and 404 */
.contact-page { max-width: 680px; margin: 0 auto; padding: clamp(40px,6vw,80px) clamp(16px,4vw,40px) 0; font-family: var(--font-ui); }
.contact-page h1 { font: 700 clamp(32px,4.5vw,48px)/1.15 var(--font-serif); color: var(--ink); margin: 0 0 14px; letter-spacing: -0.01em; }
.contact-intro { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 36px; }
.contact-row { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-label { width: 110px; font-size: 14px; color: var(--muted); font-weight: 600; }
.contact-value { font: 600 16px/1.4 'Urbanist', sans-serif;; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.contact-value:hover { color: var(--gold); }
.notfound { max-width: 640px; margin: 96px auto; padding: 0 20px; font-family: var(--font-serif); }
.notfound h1 { color: var(--ink); margin-bottom: 14px; }
.notfound a { color: var(--gold); }

/* The polaroid gallery look on the homepage */
.travel-memories {
  padding: 20px 30px 45px;
  overflow: hidden;
}

.memory-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 5vw, 55px);
  position: relative;
}

.memory-gallery::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: #b6a58e;
  border-radius: 50%;
  transform: rotate(-1deg);
}

.memory-card {
  position: relative;
  width: clamp(130px, 16vw, 200px);
  flex-shrink: 0;
  text-align: center;
  padding-top: 40px;
}

.memory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: 42px;
  border-left: 1px solid #b6a58e;
}

.polaroid {
  background: white;
  padding: 8px 8px 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transform: rotate(-3deg);
}

.memory-card:nth-child(even) .polaroid {
  transform: rotate(3deg);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.memory-caption {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'Urbanist', sans-serif;
  color: var(--ink);
  font-weight: 400;
}

.memory-caption small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.memory-card {
  width: 125px;
}
