@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f6f7fb;
    color: #222;
    line-height: 1.6;
}

/* =========================
   LAYOUT
========================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

hr {
    border: none;
    height: 1px;
    background: #ddd;
    margin: 30px 0;
}

/* =========================
   HEADER
========================= */
.site-header {
    background: #0f0f0f;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    gap: 12px;
}

.logo a {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.site-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav a {
    margin-left: 20px;
    font-weight: 500;
    color: #ffffff;
}

.nav a:hover {
    color: #f2f2f2;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
    transition: right 0.2s ease;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.nav-drawer.open {
    right: 0;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 150;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #eef0f5;
    font-weight: 600;
}

.nav-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.nav-drawer-body {
    padding: 12px 18px 20px;
    overflow-y: auto;
}

.nav-country-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.nav-country-item {
    border: 1px solid #eef0f5;
    border-radius: 8px;
    padding: 10px 12px;
}

.nav-country-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.nav-expand {
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}

.nav-city-list {
    list-style: none;
    margin-top: 10px;
    display: none;
    gap: 6px;
}

.nav-country-item.open .nav-city-list {
    display: grid;
}

.nav-city-list a {
    color: #1f2937;
    font-size: 14px;
}

/* =========================
   BREADCRUMB
========================= */
.breadcrumb {
    font-size: 14px;
    margin: 0px 0 10px;
    color: #666;
}

.breadcrumb a {
    color: #0066cc;
}

.breadcrumb span {
    margin: 0 6px;
}

/* =========================
   HEADINGS
========================= */
h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

p {
    color: #555;
}

/* =========================
   HEADER / HERO
========================= */
.hero,
.city-header,
.country-header {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* =========================
   LINKS
========================= */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   PRICE CARDS
========================= */
.price-cards .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.card h3 {
    color: #666;
    font-weight: 500;
}

.card p {
    font-size: 22px;
    font-weight: 600;
    color: #111;
}

/* =========================
   PRICE HIGHLIGHTS
========================= */
.price-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.price-highlight-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.price-highlight-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6e7ea 0%, #c9cbd1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #555;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.price-highlight-title {
    font-weight: 600;
    color: #111827;
}

.price-highlight-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin-top: 4px;
}

.price-highlight-metrics {
    text-align: right;
}

.price-highlight-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.price-highlight-change {
    font-size: 14px;
    margin-top: 4px;
}

/* =========================
   FAQS
========================= */
.faq-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.faq-item p {
    color: #555;
}

.faq-item {
    border: 1px solid #eef0f5;
    border-radius: 10px;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    padding: 16px 18px;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 18px;
    color: #6b7280;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 18px 16px;
    color: #555;
}

/* =========================
   MOVEMENT ACCORDION
========================= */
.movement-accordion {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.movement-item {
    border: 1px solid #eef0f5;
    border-radius: 10px;
    overflow: hidden;
}

.movement-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    padding: 16px 18px;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.movement-item summary::-webkit-details-marker {
    display: none;
}

.movement-item summary::after {
    content: "+";
    font-size: 18px;
    color: #6b7280;
}

.movement-item[open] summary::after {
    content: "−";
}

.movement-table {
    padding: 0 18px 18px;
}

/* =========================
   TABLES
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background: #f0f2f7;
    font-weight: 600;
}

tr:hover {
    background: #fafafa;
}

/* =========================
   PRICE CHANGE COLORS
========================= */
.up {
    color: #0a8a3a;
    font-weight: 600;
}

.down {
    color: #c62828;
    font-weight: 600;
}

.same {
    color: #555;
}

/* =========================
   CITY LIST
========================= */
.city-list ul,
.country-list ul,
.cities ul {
    list-style: none;
}

.city-list li,
.cities li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.city-rate-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.country-rate-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.city-rate-price {
    font-weight: 600;
    color: #111827;
    margin-left: auto;
}

.city-rate-change {
    font-size: 14px;
}

/* =========================
   GRAPH SECTION
========================= */
.price-graph {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.price-graph canvas {
    width: 100% !important;
    height: auto !important;
}

.chart-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}

.chart-filter {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.chart-filter.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #111827;
}

.list-controls {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 10px 0 16px;
}

.list-search {
    flex: 1 1 240px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 30px 10px;
    color: #777;
    font-size: 14px;
}
.site-footer {
    background: #111;
    color: #ccc;
    margin-top: 60px;
    padding: 40px 0;
}

.site-footer a {
    color: #ddd;
}

.site-footer a:hover {
    color: #fff;
}

.footer-links {
    margin-top: 8px;
}

.disclaimer {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}

/* =========================
   ADMIN UI
========================= */
.admin-page {
    max-width: 1100px;
    margin: 32px auto 60px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-header p {
    color: #666;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.admin-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 20px;
}

.admin-card h3 {
    margin-bottom: 12px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-link-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    background: #fafbff;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.admin-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.admin-form {
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-field label {
    display: block;
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.form-field textarea {
    min-height: 120px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: #1f2a44;
    color: #fff;
}

.btn-secondary {
    background: #f0f2f7;
    color: #1f2a44;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.admin-table th {
    background: #f4f6fb;
    font-weight: 600;
}

.admin-login {
    max-width: 560px;
    margin: 48px auto 70px;
    padding: 28px;
    background: radial-gradient(circle at top, #f7f9ff 0%, #f2f4f9 55%, #eef1f7 100%);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.admin-error {
    background: #ffe9e9;
    color: #b12222;
    padding: 10px 12px;
    border-radius: 6px;
    text-align: center;
}

.admin-login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    padding: 34px 36px;
    position: relative;
    overflow: hidden;
    border: 1px solid #eef0f6;
}

.admin-login-card::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0));
    pointer-events: none;
}

.admin-login-header h2 {
    font-size: 30px;
    margin-bottom: 6px;
    color: #101828;
}

.admin-login-header p {
    color: #667085;
    margin-bottom: 20px;
}

.admin-login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 40px 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

.admin-login-field {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

/* Labels */
.admin-login-field label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.admin-login-field input[type="text"],
.admin-login-field input[type="password"] {
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

.admin-login-field input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
  }

.admin-login-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e1e5f2;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-login-field input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.admin-login-input {
    position: relative;
    display: flex;
    align-items: center;
  }

.admin-login-input input {
    padding-right: 40px;
}

.admin-login-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 14px;
    user-select: none;
}

.admin-login-button {
    width: 100%;
    padding: 14px 0;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
  }
  
  .admin-login-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
  }
  
  .admin-login-button:active {
    transform: translateY(0);
  }


.admin-login-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: #98a2b3;
    font-size: 12px;
    letter-spacing: 1px;
}

.admin-login-line {
    flex: 1;
    height: 1px;
    background: #e6e8ee;
}

@media (max-width: 500px) {
    .admin-login-form {
      margin: 20px;
      padding: 30px 20px;
    }
  }
  
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header-inner {
        flex-direction: row;
        align-items: flex-start;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .nav a {
        margin-left: 0;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    .card p {
        font-size: 20px;
    }

    .hero,
    .city-header,
    .country-header,
    .price-graph,
    .city-content {
        padding: 18px;
    }

    .city-content {
        margin: 24px auto;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        padding: 10px 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .breadcrumb {
        margin: 10px 0 18px;
        font-size: 13px;
    }

    .price-highlight-card {
        grid-template-columns: auto 1fr;
        row-gap: 10px;
    }

    .price-graph canvas {
        height: 220px !important;
    }

    .city-rate-price {
        margin-left: 0;
    }

    .price-highlight-metrics {
        text-align: left;
        grid-column: 1 / -1;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    .card p {
        font-size: 18px;
    }

    .card {
        padding: 16px;
    }
}

.city-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  
  .city-content h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #222;
  }
  
  .city-content .content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
  }
  
  /* Headings inside CKEditor content */
  .city-content h3 {
    font-size: 22px;
    margin-top: 30px;
    color: #111;
  }
  
  .city-content h4 {
    font-size: 18px;
    margin-top: 20px;
  }
  
  /* Lists */
  .city-content ul {
    margin: 15px 0 15px 25px;
  }
  
  .city-content li {
    margin-bottom: 8px;
  }
  
  /* Tables from CKEditor */
  .city-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
  }
  
  .city-content table th,
  .city-content table td {
    border: 1px solid #ddd;
    padding: 10px;
  }
  
  /* Images */
  .city-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
  }
  
  /* Blockquotes */
  .city-content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 15px;
    margin: 20px 0;
    color: #555;
    font-style: italic;
  }
  
