/* ============================================================
   topkapipalacetickets.eu
   Italiana display + DM Sans body
   Gold #c8a85a + Navy #1f2533
   Prefix: tsr-
   ============================================================ */

:root {
  --tsr-accent: #c8a85a;
  --tsr-accent-bright: #e9c75a;
  --tsr-accent-deep: #a88838;
  --tsr-accent-soft: #e9d8a8;
  --tsr-ink: #1f2533;
  --tsr-ink-soft: #4a5060;
  --tsr-paper: #faf7f0;
  --tsr-paper-warm: #f3ecda;
  --tsr-card: #ffffff;
  --tsr-line: #e8e1d0;
  --tsr-line-soft: #f1ead6;
  --tsr-shadow: 0 6px 24px -10px rgba(31, 37, 51, 0.18);
  --tsr-shadow-strong: 0 14px 40px -16px rgba(31, 37, 51, 0.28);
  --tsr-radius: 14px;
}

* { box-sizing: border-box; min-width: 0; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  width: 100%;
}

/* overflow-x ONLY on body, NOT on html -- otherwise position:sticky breaks */
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--tsr-ink);
  background: var(--tsr-paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tsr-accent-deep);
  text-decoration: none;
}

a:hover { color: var(--tsr-ink); }

/* Typography ============================================ */

h1, h2, h3, h4 {
  font-family: 'Italiana', 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  color: var(--tsr-ink);
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin: 0 0 0.6em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 0.4em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }

/* Header ============================================ */

.tsr-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tsr-line);
  width: 100%;
  box-shadow: 0 2px 12px -4px rgba(31, 37, 51, 0.08);
}

.tsr-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.tsr-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  flex-shrink: 0;
}

.tsr-logo-mark {
  font-family: 'Italiana', serif;
  font-size: 1.55rem;
  color: var(--tsr-ink);
  letter-spacing: 0.04em;
}

.tsr-logo-mark::before {
  content: "✦ ";
  color: var(--tsr-accent);
  font-size: 0.9em;
}

.tsr-logo-sub {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tsr-accent-deep);
  margin-top: 2px;
}

.tsr-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tsr-accent);
  color: var(--tsr-ink) !important;
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--tsr-accent);
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(200, 168, 90, 0.6);
  font-family: 'DM Sans', sans-serif;
}

.tsr-header-cta:hover {
  background: var(--tsr-accent-deep);
  border-color: var(--tsr-accent-deep);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(168, 136, 56, 0.7);
}

/* Hero ============================================ */

.tsr-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.tsr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/foto-tsr-1.jpg') center/cover no-repeat;
  z-index: -2;
}

.tsr-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,37,51,0.25) 0%, rgba(31,37,51,0.75) 70%, rgba(31,37,51,0.9) 100%);
  z-index: -1;
}

.tsr-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 50px;
  width: 100%;
}

.tsr-hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.tsr-hero-brand-en {
  display: inline-block;
  font-family: 'Italiana', serif;
  font-size: 0.86rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tsr-accent);
  margin-bottom: 14px;
  padding: 6px 18px;
  border: 1px solid rgba(200, 168, 90, 0.55);
  border-radius: 99px;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
}

.tsr-hero-lead {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin-bottom: 26px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.tsr-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tsr-accent);
  color: var(--tsr-ink);
  padding: 16px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 8px 24px -8px rgba(200, 168, 90, 0.45);
}

.tsr-cta:hover {
  background: var(--tsr-accent-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(168, 136, 56, 0.55);
}

.tsr-cta::after { content: " →"; }

/* Containers - FULL WIDTH content ============================================ */

.tsr-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.tsr-section {
  padding: 56px 0 28px;
}

.tsr-section + .tsr-section {
  border-top: 1px dashed var(--tsr-line);
}

.tsr-section p {
  margin: 0 0 1.05em;
  max-width: none;
}

.tsr-intro p {
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: none;
}

/* Inline photos with proper spacing ============================================ */

.tsr-photo-inline {
  margin: 30px 0 50px;
  border-radius: var(--tsr-radius);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 21/9;
  max-height: 460px;
}

.tsr-photo-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Widget frame - FULL WIDTH ============================================ */

.tsr-widget-frame {
  margin: 28px 0;
  padding: 24px;
  background: var(--tsr-card);
  border: 1px solid var(--tsr-line);
  border-radius: var(--tsr-radius);
  box-shadow: var(--tsr-shadow);
  width: 100%;
  max-width: 100%;
}

.tsr-widget-frame > * {
  max-width: 100% !important;
  width: 100% !important;
}

/* Tables ============================================ */

.tsr-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0;
  border-radius: var(--tsr-radius);
  border: 1px solid var(--tsr-line);
  max-width: 100%;
}

.tsr-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--tsr-card);
}

.tsr-table th,
.tsr-table td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--tsr-line);
  font-size: 0.96rem;
}

.tsr-table th {
  background: var(--tsr-ink);
  color: var(--tsr-paper);
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.tsr-table tr:last-child td { border-bottom: none; }
.tsr-table tr:nth-child(even) td { background: var(--tsr-line-soft); }
.tsr-table td:last-child {
  font-weight: 600;
  color: var(--tsr-accent-deep);
  white-space: nowrap;
}

.tsr-fact-table th,
.tsr-fact-table td { font-size: 0.95rem; }

.tsr-fact-table td:first-child {
  font-weight: 600;
  color: var(--tsr-ink);
  width: 40%;
}

.tsr-fact-table td:last-child {
  color: var(--tsr-ink-soft);
  font-weight: 400;
  white-space: normal;
}

/* Gratis admission box ============================================ */

.tsr-gratis {
  margin: 22px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--tsr-paper-warm) 0%, var(--tsr-card) 100%);
  border-left: 4px solid var(--tsr-accent);
  border-radius: 0 var(--tsr-radius) var(--tsr-radius) 0;
}

.tsr-gratis-title {
  font-family: 'Italiana', serif;
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--tsr-ink);
}

.tsr-gratis p {
  margin: 0;
  font-size: 0.96rem;
}

/* Provider cards (GYG / Tiqets) ============================================ */

.tsr-providers {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.tsr-provider {
  background: var(--tsr-card);
  border: 1px solid var(--tsr-line);
  border-radius: var(--tsr-radius);
  padding: 30px;
  box-shadow: var(--tsr-shadow);
}

.tsr-provider-primary {
  border: 2px solid var(--tsr-accent);
  box-shadow: var(--tsr-shadow-strong);
  position: relative;
}

.tsr-provider-primary::before {
  content: "★";
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--tsr-accent);
  color: var(--tsr-ink);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tsr-provider h3 { margin-bottom: 0.3em; }

.tsr-rating {
  font-size: 0.86rem;
  color: var(--tsr-accent-deep);
  font-weight: 600;
  margin-bottom: 14px;
}

.tsr-provider-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
}

.tsr-provider-bullets li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px dotted var(--tsr-line);
  font-size: 0.97rem;
}

.tsr-provider-bullets li:last-child { border-bottom: none; }

.tsr-provider-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--tsr-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.tsr-provider-bullets b { color: var(--tsr-ink); }

/* Tips ============================================ */

.tsr-tips {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: tsr-tip;
  display: grid;
  gap: 14px;
}

.tsr-tips li {
  position: relative;
  background: var(--tsr-card);
  border: 1px solid var(--tsr-line);
  border-radius: var(--tsr-radius);
  padding: 22px 24px 22px 70px;
  counter-increment: tsr-tip;
  box-shadow: var(--tsr-shadow);
}

.tsr-tips li::before {
  content: counter(tsr-tip);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 32px;
  height: 32px;
  background: var(--tsr-ink);
  color: var(--tsr-accent);
  font-family: 'Italiana', serif;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tsr-tips b {
  font-weight: 700;
  color: var(--tsr-ink);
}

/* Entities grid ============================================ */

.tsr-entities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tsr-entity-card {
  background: var(--tsr-card);
  border: 1px solid var(--tsr-line);
  border-radius: var(--tsr-radius);
  padding: 22px 22px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
  min-width: 0;
}

.tsr-entity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tsr-shadow-strong);
  border-color: var(--tsr-accent-soft);
}

.tsr-entity-name {
  font-family: 'Italiana', serif;
  font-size: 1.18rem;
  color: var(--tsr-ink);
  margin: 0 0 2px;
  word-wrap: break-word;
}

.tsr-entity-sub {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--tsr-accent-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tsr-entity-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--tsr-ink-soft);
}

/* Content cards (Hours / Cancel) ============================================ */

.tsr-content-card {
  background: var(--tsr-card);
  border: 1px solid var(--tsr-line);
  border-radius: var(--tsr-radius);
  padding: 30px 32px;
  box-shadow: var(--tsr-shadow);
}

.tsr-content-card p:last-child {
  margin-bottom: 0;
}

/* CTA banner - GOLD HEADER on DARK background ============================================ */

.tsr-cta-banner {
  margin: 50px 0 20px;
  padding: 50px 32px;
  text-align: center;
  background: var(--tsr-ink);
  color: var(--tsr-paper);
  border-radius: var(--tsr-radius);
  background-image: radial-gradient(circle at 20% 30%, rgba(200,168,90,0.18) 0%, transparent 50%);
}

.tsr-cta-banner h2 {
  color: var(--tsr-accent-bright) !important;
  margin: 0 0 0.6em;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
  font-family: 'Italiana', serif;
  text-shadow: 0 2px 12px rgba(200, 168, 90, 0.25);
}

.tsr-cta-banner p {
  color: rgba(250,247,240,0.88) !important;
  margin-bottom: 1.6em;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

/* Footer ============================================ */

.tsr-footer {
  margin-top: 60px;
  padding: 50px 24px 28px;
  background: var(--tsr-ink);
  color: rgba(250,247,240,0.78);
  font-size: 0.92rem;
  width: 100%;
}

.tsr-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 40px;
}

.tsr-footer h4 {
  color: var(--tsr-accent);
  font-family: 'Italiana', serif;
  font-size: 1.05rem;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}

.tsr-footer a {
  color: rgba(250,247,240,0.78);
  text-decoration: none;
}

.tsr-footer a:hover { color: var(--tsr-accent); }

.tsr-footer p {
  margin: 0 0 0.7em;
  line-height: 1.55;
}

.tsr-footer-link {
  color: var(--tsr-accent) !important;
  border-bottom: 1px dotted rgba(200,168,90,0.5);
}

.tsr-footer-link:hover {
  color: var(--tsr-paper) !important;
}

/* Language switcher - styled <select> ============================================ */

.tsr-lang-select-wrap {
  position: relative;
  display: block;
  max-width: 280px;
  width: 100%;
}

.tsr-lang-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: transparent;
  background-color: rgba(250, 247, 240, 0.08);
  color: var(--tsr-paper);
  border: 1.5px solid var(--tsr-accent);
  border-radius: 8px;
  padding: 14px 44px 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  outline: none;
  transition: 0.2s;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.tsr-lang-select:hover,
.tsr-lang-select:focus {
  background-color: rgba(200, 168, 90, 0.15);
  border-color: var(--tsr-accent);
  color: var(--tsr-accent);
  box-shadow: 0 0 0 3px rgba(200, 168, 90, 0.18);
}

.tsr-lang-select option {
  background: #1f2533;
  color: #faf7f0;
  padding: 10px;
  font-weight: 500;
}

.tsr-lang-select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--tsr-accent);
  border-bottom: 2px solid var(--tsr-accent);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.2s;
}

.tsr-lang-select-wrap:hover::after {
  transform: translateY(-30%) rotate(45deg);
}

/* Copyright ============================================ */

.tsr-copy {
  max-width: 1180px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(250,247,240,0.14);
  font-size: 0.82rem;
  color: rgba(250,247,240,0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

/* 404 page ============================================ */

.tsr-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.tsr-404-inner {
  max-width: 720px;
  width: 100%;
}

.tsr-404 h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 0.2em;
}

.tsr-404 h1::first-letter {
  color: var(--tsr-accent);
}

.tsr-404-lead {
  font-size: 1.1rem;
  color: var(--tsr-ink-soft);
  margin-bottom: 30px;
}

.tsr-404-widget-wrap {
  margin: 40px auto;
  max-width: 900px;
}

/* Responsive ============================================ */

@media (max-width: 900px) {
  .tsr-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tsr-entities {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .tsr-section { padding: 42px 0 18px; }

  .tsr-header-inner { padding: 11px 14px; gap: 10px; }

  .tsr-logo-mark { font-size: 1.25rem; letter-spacing: 0.04em; }
  .tsr-logo-sub { font-size: 0.58rem; letter-spacing: 0.18em; }

  .tsr-header-cta {
    padding: 10px 18px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .tsr-hero { min-height: 460px; }
  .tsr-hero-inner { padding: 50px 20px 36px; }
  .tsr-hero-brand-en {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    padding: 5px 14px;
  }

  .tsr-content-card { padding: 22px 20px; }
  .tsr-provider { padding: 24px 20px; }

  .tsr-tips li { padding: 20px 18px 20px 58px; }
  .tsr-tips li::before { left: 16px; top: 18px; }

  .tsr-cta-banner { padding: 36px 22px; }
  .tsr-photo-inline {
    aspect-ratio: 4/3;
    margin: 24px 0 36px;
  }

  .tsr-cta { width: 100%; justify-content: center; }

  .tsr-table th, .tsr-table td {
    padding: 11px 13px;
    font-size: 0.92rem;
  }

  .tsr-widget-frame { padding: 16px; }

  .tsr-entities { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .tsr-logo-mark { font-size: 1.1rem; }
  .tsr-header-cta {
    padding: 9px 14px;
    font-size: 0.72rem;
  }
}

/* RTL support (Arabic) ============================================ */

html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'DM Sans', system-ui, sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: 'Amiri', 'Italiana', 'Cormorant Garamond', Georgia, serif;
}

html[dir="rtl"] .tsr-logo-mark::before {
  content: " ✦";
  margin-left: 4px;
  margin-right: 0;
}

html[dir="rtl"] .tsr-cta::after {
  content: " ←";
}

html[dir="rtl"] .tsr-provider-primary::before {
  left: auto;
  right: 28px;
}

html[dir="rtl"] .tsr-provider-bullets li {
  padding: 10px 28px 10px 0;
}

html[dir="rtl"] .tsr-provider-bullets li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .tsr-tips li {
  padding: 22px 70px 22px 24px;
}

html[dir="rtl"] .tsr-tips li::before {
  left: auto;
  right: 22px;
}

html[dir="rtl"] .tsr-gratis {
  border-left: none;
  border-right: 4px solid var(--tsr-accent);
  border-radius: var(--tsr-radius) 0 0 var(--tsr-radius);
}

html[dir="rtl"] .tsr-lang-select {
  padding: 14px 18px 14px 44px;
}

html[dir="rtl"] .tsr-lang-select-wrap::after {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .tsr-fact-table td:first-child {
  text-align: right;
}

html[dir="rtl"] .tsr-table th,
html[dir="rtl"] .tsr-table td {
  text-align: right;
}

@media (max-width: 720px) {
  html[dir="rtl"] .tsr-tips li {
    padding: 20px 58px 20px 18px;
  }
  html[dir="rtl"] .tsr-tips li::before {
    left: auto;
    right: 16px;
  }
}
