/* ==========================================================================
   Escortx dark mode. Loaded AFTER style.css; style.css is never edited.
   Active when <html data-theme="dark"> (and data-bs-theme="dark" for Bootstrap).
   Palette: page #0d1016 · surface #161b24 · raised #1f2530 · border #2b3342
   ========================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --light-gray: #161b24;
  --text-dark: #f3f5f8;
  --gray: rgba(255, 255, 255, 0.62);
  --light-primary: rgba(0, 179, 246, 0.14);
  /* Bootstrap 5.3 variables */
  --bs-body-bg: #0d1016;
  --bs-body-color: #c3c9d4;
  --bs-border-color: #2b3342;
  --bs-tertiary-bg: #161b24;
  --bs-secondary-bg: #1f2530;
}

/* ---- base ---- */
html[data-theme="dark"] body { background-color: #0d1016; color: #c3c9d4; }
html[data-theme="dark"] a:not(.btn):hover { color: var(--primary-color); }
html[data-theme="dark"] hr { border-color: #2b3342; opacity: 1; }
html[data-theme="dark"] .box_shadow { box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }

/* ---- surfaces ---- */
html[data-theme="dark"] .bg_light,
html[data-theme="dark"] .custom-header,
html[data-theme="dark"] footer,
html[data-theme="dark"] .mobile-offcanvas,
html[data-theme="dark"] .bg-light { background-color: #161b24 !important; }
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .dropdown-menu { background-color: #1f2530 !important; }
html[data-theme="dark"] section.bg_light { background-color: #12161e !important; }   /* page-wide bands */
html[data-theme="dark"] section.bg_light > .container.bg-white,
html[data-theme="dark"] section.bg_light .container > .bg-white { background-color: #1a1f29 !important; }
html[data-theme="dark"] .bg_gradient { background: linear-gradient(175deg, #1f2530 35%, #1a1f29 97%); }
html[data-theme="dark"] .bg_gradient.border { border-color: #2b3342 !important; }
html[data-theme="dark"] .btn.bg_light:hover,
html[data-theme="dark"] button.dropdown-toggle:hover { background-color: #232a37 !important; }

/* ---- text ---- */
html[data-theme="dark"] .text-black,
html[data-theme="dark"] .text_black,
html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .text_dark,
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3,
html[data-theme="dark"] h4, html[data-theme="dark"] h5, html[data-theme="dark"] h6,
html[data-theme="dark"] .detailed_content h2,
html[data-theme="dark"] .escort_location_content strong,
html[data-theme="dark"] .services_overlap_container h5,
html[data-theme="dark"] .nav-underline .nav-link,
html[data-theme="dark"] .profile_tabs .nav-link,
html[data-theme="dark"] .btn-check,
html[data-theme="dark"] .mobile-nav a { color: #f3f5f8 !important; }
html[data-theme="dark"] .text_medium_gray { color: #aab2bf; }
html[data-theme="dark"] .detailed_content p { color: #c3c9d4; }
html[data-theme="dark"] .nav-underline .nav-link.active { color: var(--primary-color) !important; }
html[data-theme="dark"] .text_primary,
html[data-theme="dark"] .custom_link.text_primary { color: var(--primary-color) !important; }
html[data-theme="dark"] .text-black .text_primary { color: var(--primary-color) !important; }
html[data-theme="dark"] .item:has(.square_wrapper):hover p { color: var(--primary-color) !important; }

/* ---- borders ---- */
html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end { border-color: #2b3342 !important; }
html[data-theme="dark"] .mobile-nav a { border-bottom-color: #2b3342; }
html[data-theme="dark"] .upper_footer .col2,
html[data-theme="dark"] .credits { border-color: #2b3342 !important; }
html[data-theme="dark"] .btn.btn_outline_light { border-color: #3a4356; }
html[data-theme="dark"] .border_primary { border-color: var(--primary-color) !important; }

/* ---- buttons, pills ---- */
html[data-theme="dark"] .btn-dark { background-color: #2a3140; border-color: #3a4356; color: #fff; }
html[data-theme="dark"] .btn-dark:hover { background-color: var(--primary-color); border-color: var(--primary-color); }
html[data-theme="dark"] .count_pills .btn span { background-color: #2a3140; }
html[data-theme="dark"] .count_pills.spec_pills a span { background-color: transparent; }
html[data-theme="dark"] .count_pills .btn.active span,
html[data-theme="dark"] .count_pills .btn:hover span { background-color: var(--primary-color); }
html[data-theme="dark"] .count_pills.spec_pills a:hover span { background-color: transparent; }
html[data-theme="dark"] .btn.btn_blue.text-white,
html[data-theme="dark"] .btn.btn_blue { color: #fff; }
html[data-theme="dark"] .btn.btn_blue:hover { color: #4d94ff; }
html[data-theme="dark"] .btn.btn_outline_blue { color: #4d94ff; border-color: #4d94ff; }
html[data-theme="dark"] .btn.btn_outline_blue:hover { background-color: #0065F4; color: #fff; }
html[data-theme="dark"] .group_radio_btns input[type="radio"]:checked + .btn { color: #fff !important; }
html[data-theme="dark"] .light_green_btn { background-color: rgba(23, 178, 106, 0.16); color: #6ee7a8; }
html[data-theme="dark"] .light_green_btn:hover { background-color: #087443; color: #fff; }

/* ---- header toggle (sun / moon) ---- */
html[data-theme="dark"] .toggle { background: #232a37; }
html[data-theme="dark"] .toggle::before { background: #3a4356; }
html[data-theme="dark"] .toggle_inputs:nth-of-type(1):checked ~ .toggle label:nth-of-type(1),
html[data-theme="dark"] .toggle_inputs:nth-of-type(2):checked ~ .toggle label:nth-of-type(2) { color: #fff; }
html[data-theme="dark"] .toggle label { color: #8b93a1; }

/* ---- dropdown arrow icon (black SVG background) ---- */
html[data-theme="dark"] .dropdown-toggle::after { filter: invert(1); }
html[data-theme="dark"] .dropdown-item { color: #e5e8ee; }
html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus { background-color: #2a3140; color: #fff; }
html[data-theme="dark"] .dropdown-item.active { background-color: var(--primary-color); color: #fff; }

/* ---- forms ---- */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .squared_input { background-color: #12161e; color: #e5e8ee; border-color: #2f3747; }
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus { background-color: #12161e; color: #fff; border-color: var(--primary-color); }
html[data-theme="dark"] .form-control:disabled { background-color: #161b24; }
html[data-theme="dark"] .otp-inputs .form-control { border-color: #2f3747; }
html[data-theme="dark"] .otp-inputs .form-control:focus { border-color: var(--primary-color); }
html[data-theme="dark"] .form-check-input:not(:checked) { background-color: #12161e; border-color: #3a4356; }
html[data-theme="dark"] label,
html[data-theme="dark"] .form-label { color: #e5e8ee; }
html[data-theme="dark"] input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #12161e inset; -webkit-text-fill-color: #e5e8ee; }
html[data-theme="dark"] .upload-box { background-color: #161b24; }
html[data-theme="dark"] .upload-box:hover,
html[data-theme="dark"] .upload-box.dragover { background-color: #1b2230; }
html[data-theme="dark"] .upload-icon { border-color: #2f3747; color: #aab2bf; background-color: #1f2530; box-shadow: none; }

/* ---- cards, listings ---- */
html[data-theme="dark"] .escort_card { background-color: var(--light-primary); }
html[data-theme="dark"] .rating_count { box-shadow: 0 0 4px rgba(0, 0, 0, 0.6); background-color: #1f2530 !important; }
html[data-theme="dark"] .bg_light_primary .bg-white { background-color: #1f2530 !important; }
html[data-theme="dark"] .bg_light_primary:hover { background-color: var(--light-primary); }
html[data-theme="dark"] .gray_border_rounded_box { background-color: #1f2530; border-color: #2b3342 !important; }
html[data-theme="dark"] .gray_border_rounded_box:hover { border-color: var(--primary-color) !important; }
html[data-theme="dark"] .image_circle { background-color: #232a37 !important; }
html[data-theme="dark"] .img_overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%); }

/* ---- carousels ---- */
html[data-theme="dark"] body .owl-carousel .owl-nav button.owl-prev,
html[data-theme="dark"] body .owl-carousel .owl-nav button.owl-next { background: #232a37; color: #e5e8ee; box-shadow: 0 0 6px rgba(0, 0, 0, 0.6); }
html[data-theme="dark"] body .owl-carousel .owl-nav button.owl-prev:hover,
html[data-theme="dark"] body .owl-carousel .owl-nav button.owl-next:hover { background-color: var(--primary-color); color: #fff; }
html[data-theme="dark"] body .owl-dots button.owl-dot { background-color: #3a4356; }
html[data-theme="dark"] body .owl-dots button.owl-dot.active { background-color: #fff; }

/* ---- tables, steps, tabs, accordion ---- */
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: #1b212b; color: #c3c9d4; }
html[data-theme="dark"] .step-dot { background: #1f2530; border-color: #3a4356; }
html[data-theme="dark"] .step-dot.active,
html[data-theme="dark"] .step-dot.completed { background: #08afe5; border-color: #08afe5; }
html[data-theme="dark"] .step-line { background: #3a4356; }
html[data-theme="dark"] .step-line.active { background: #08afe5; }
html[data-theme="dark"] .profile_tabs .nav-link.active { background-color: #2a3140; color: #fff !important; }
html[data-theme="dark"] .custom_tabs .nav-link { color: #f3f5f8 !important; }
html[data-theme="dark"] .accordion-button { background-color: transparent; color: #f3f5f8; }
html[data-theme="dark"] .accordion-button:not(.collapsed) { color: var(--primary-color); }
html[data-theme="dark"] .accordion-button::after { filter: invert(1); }

/* ---- hard-coded black / dark SVG icons from the design ---- */
html[data-theme="dark"] svg [stroke="#242529"],
html[data-theme="dark"] svg [stroke="black"],
html[data-theme="dark"] svg [stroke="#000"],
html[data-theme="dark"] svg [stroke="#000000"],
html[data-theme="dark"] svg [stroke="#1A1A1A"] { stroke: #e6e9ef; }
html[data-theme="dark"] svg [fill="#242529"],
html[data-theme="dark"] svg [fill="black"],
html[data-theme="dark"] svg [fill="#000"],
html[data-theme="dark"] svg [fill="#000000"],
html[data-theme="dark"] svg [fill="#1A1A1A"] { fill: #e6e9ef; }
html[data-theme="dark"] svg[stroke="#242529"], html[data-theme="dark"] svg[stroke="black"] { stroke: #e6e9ef; }
html[data-theme="dark"] svg[fill="#242529"], html[data-theme="dark"] svg[fill="black"] { fill: #e6e9ef; }
html[data-theme="dark"] .gray_border_rounded_box:hover svg path { stroke: var(--primary-color); }
html[data-theme="dark"] .btn.location_btn:hover svg path { fill: var(--primary-color); }

/* ---- Bootstrap pieces that use fixed light colours ---- */
html[data-theme="dark"] .badge.bg-light,
html[data-theme="dark"] .badge.text-dark { background-color: #2a3140 !important; color: #e5e8ee !important; }
html[data-theme="dark"] .alert-warning { color: #ffe08a; }
html[data-theme="dark"] .pagination { --bs-pagination-bg: #1f2530; --bs-pagination-border-color: #2b3342; --bs-pagination-color: #c3c9d4;
  --bs-pagination-hover-bg: #2a3140; --bs-pagination-hover-color: #fff; --bs-pagination-disabled-bg: #161b24; --bs-pagination-disabled-color: #6b7383; }
html[data-theme="dark"] .page-item.active .page-link { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* ---- media that should not glare ---- */
html[data-theme="dark"] img:not([src$=".svg"]):not(.no-dim) { filter: brightness(0.92); }
html[data-theme="dark"] .rounded_illustration,
html[data-theme="dark"] .square_illustration { opacity: 0.9; }
