/* Dedicated and cloud server pages: server list and filters, spec tabs, location blocks. */

.server-filters {
    padding: 18px 20px 8px;
    border: 1px solid rgba(15, 23, 42, .08);
    margin-bottom: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    border-radius: var(--mh-radius-card);
}

.server-filters div > span {
    display: block;
    font-weight: 800;
    color: var(--bs-dark);
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.server-filters div input {
    margin-right: 5px;
}

.irs {
    font-family: inherit;
}

.irs--round .irs-bar,
.irs--round .irs-from,
.irs--round .irs-to,
.irs--round .irs-single {
    background-color: var(--bs-success);
}

.irs--round .irs-from,
.irs--round .irs-to,
.irs--round .irs-single {
    background-color: var(--mh-fill-green);
    color: var(--mh-on-brand);
    font-weight: 600;
}

.server-filters .irs--round .irs-grid-text {
    color: var(--bs-dark-gray);
}

.irs--round .irs-from:before,
.irs--round .irs-to:before,
.irs--round .irs-single:before {
    border-top-color: var(--mh-fill-green);
}

.irs--round .irs-handle.state_hover,
.irs--round .irs-handle:hover {
    background-color: var(--bs-light-success);
}

.server-filters .disk-picks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
}

.server-filters .disk-picks .form-switch {
    margin: 0;
    font-weight: 700;
    color: var(--bs-dark);
}

.server-filters .cpu,
.server-filters .ram {
    width: 100%;
    padding-right: 28px;
}

.server-filters .irs,
.server-filters .irs-line,
.server-filters .irs-handle,
.server-filters .range-slider {
    outline: none;
}

.server-filters .irs--round .irs-handle {
    top: 29px;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    background-color: var(--bs-success);
    box-shadow: none;
}

.server-filters .irs--round .irs-handle.state_hover,
.server-filters .irs--round .irs-handle:hover {
    background-color: var(--bs-success);
}

.alm-toolbar {
    display: none;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0 4px;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
}

.alm-search {
    position: relative;
    flex: 1 1 280px;
    max-width: 480px;
}

.alm-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    fill: #94a3b8;
    pointer-events: none;
}

.server-filters .alm-search .form-control {
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 14px 0 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #fff;
    font-size: 15px;
    line-height: 46px;
    box-shadow: none;
}

.server-filters .alm-search .form-control:hover,
.alm-sort-btn:hover {
    border-color: #cbd5e1;
}

.server-filters .alm-search .form-control:focus,
.server-filters .alm-search .form-control:focus-visible,
.alm-sort-btn:focus,
.alm-sort-btn:focus-visible,
.alm-sort-btn[aria-expanded="true"] {
    border-color: var(--bs-success);
    box-shadow: none;
    outline: none;
}

.alm-search input::-webkit-search-decoration,
.alm-search input::-webkit-search-cancel-button {
    appearance: none;
}

.alm-sort {
    position: relative;
    flex: 0 0 240px;
    width: 240px;
}

.alm-sort-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--mh-radius-control);
    background: #fff;
    color: var(--bs-dark);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: left;
    cursor: pointer;
}

.alm-sort-btn svg {
    width: 14px;
    height: 14px;
    flex: none;
    color: #343a40;
}

.alm-sort-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.alm-sort-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgb(15 23 42 / 10%);
}

.alm-sort-menu li {
    padding: 9px 10px;
    border-radius: 4px;
    color: var(--bs-dark);
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
}

.alm-sort-menu li:hover,
.alm-sort-menu li.is-active {
    background: var(--bs-light-success);
    color: var(--bs-success-text);
}

.server-filters .alm-count {
    display: inline;
    margin-left: auto;
    color: var(--bs-dark-gray);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.alm-count b {
    color: var(--bs-dark);
    font-weight: 700;
}

/* Dedicated list: Almanya toolbar and its "more" button, shown by the page and dedicated.js. */
.alm-toolbar.is-on {
    display: flex;
}

.alm-more {
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .server-filters .cpu {
        margin: 30px 0;
    }

    .server-filters .ram {
        margin-bottom: 15px;
    }

    .alm-toolbar {
        align-items: stretch;
    }

    .alm-search,
    .alm-sort {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
    }

    .server-filters .cpu,
    .server-filters .ram {
        zoom: 1;
        padding: 0;
    }

    .server-filters .cpu .irs,
    .server-filters .ram .irs {
        margin: 0 14px;
    }

    #almSearch {
        font-size: 16px;
    }
}

.server-section {
    padding: 20px 0 60px;
    background-color: var(--bs-light-gray);
}

.server-section .heading {
    margin-bottom: 30px;
}

.server-main {
    position: relative;
    z-index: 1;
}

.server-item > div {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    color: var(--bs-dark-gray);
}

.server-item > div b {
    color: var(--bs-dark);
}

.server-item > .si-0 {
    display: flex;
    flex-direction: column;
}

.server-item > .si-0 img {
    height: 22px;
    margin: 0 0 2px;
}

.server-item > .si-1 {
    position: relative;
    width: 208px;
}

.server-item > .si-1 .badge {
    position: absolute;
    left: -56px;
    top: -15px;
    display: none;
}

.server-item > .si-2 {
    width: 176px;
}

.server-item > .si-3 {
    width: 100px;
}

.server-item > .si-4 {
    width: 188px;
    flex: 0 0 188px;
}

.server-item > .si-5 {
    width: 114px;
}

.server-item > .si-6 {
    width: 144px;
    font-weight: 800;
    color: var(--bs-dark);
}

.server-item > .si-7 {
    width: 144px;
    text-align: center;
    align-items: center;
}

.server-item > .si-7 .btn {
    width: 100%;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 600;
}

.server-item:last-child {
    border-radius: 14px;
}

.server-header > .si-0 {
    width: 20px;
}

.server-item > .si-4 > .disk-caption {
    display: none;
}

.disk-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: max-content max-content max-content;
    column-gap: 8px;
    row-gap: 3px;
    align-items: baseline;
    white-space: nowrap;
}

.disk-list li {
    display: contents;
}

.disk-qty,
.disk-size {
    font-weight: 700;
    color: var(--bs-dark);
}

.disk-type {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.disk-type-nvme {
    color: #0b6b4f;
}

.disk-type-ssd {
    color: #0958c5;
}

.disk-type-sas {
    color: #9a5b12;
}

.disk-type-sata,
.disk-type-hdd {
    color: var(--bs-dark-gray);
}

.server-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /*box-shadow: rgb(98 133 158 / 20%) 0px 2px 4px;*/
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
}

.server-item.server-header {
    border: 0;
    border-radius: 0;
    padding: 4px 16px 6px;
    background: transparent;
    box-shadow: none;
}

.server-item.server-header > div {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #334155;
}

#container > .server-item {
    margin-bottom: 6px;
}

.server-item:not(.server-header):hover {
    border-color: rgba(15, 159, 120, .45);
}

.server-item:has(.stok-tukendi) {
    background: #f3f4f6;
    border-color: rgba(15, 23, 42, .06);
}

.server-item:has(.stok-tukendi) b,
.server-item:has(.stok-tukendi) .si-6,
.server-item:has(.stok-tukendi) small,
.server-item:has(.stok-tukendi) .disk-size,
.server-item:has(.stok-tukendi) .disk-qty,
.server-item:has(.stok-tukendi) .disk-type {
    color: var(--bs-dark-gray);
}

.server-item:has(.stok-tukendi):hover {
    border-color: rgba(15, 23, 42, .08);
}

/* Sold out: a small caption over the "Ön Talep Bırak" button (outlined, so it reads apart from
   the solid "Yapılandır" of the models in stock). */
.server-item > .si-7 .stok-tukendi {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .02em;
    color: var(--bs-dark-gray);
    cursor: default;
    user-select: none;
}

.server-item > .si-7 .btn-preorder {
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--mh-fill-green);
    border-radius: var(--mh-radius-control);
    background: var(--bs-white);
    color: var(--mh-fill-green);
    font-size: 14px;
    line-height: 38px;
}

.server-item > .si-7 .btn-preorder:hover,
.server-item > .si-7 .btn-preorder:focus-visible {
    background: var(--mh-fill-green);
    border-color: var(--mh-fill-green);
    color: var(--mh-on-brand);
}

.server-item[hidden] {
    display: none;
}

/* Nothing to list (no stock, or the filters hide every row): a sentence instead of an empty table. */
.server-empty {
    display: none;
    margin: 0;
    padding: 28px 20px;
    border: 1px dashed var(--mh-line);
    border-radius: var(--mh-radius-card);
    background: var(--bs-white);
    font-size: 16px;
    text-align: center;
    color: var(--bs-dark-gray);
}

#container:not(:has(> .server-item:not([hidden]))) ~ .server-empty {
    display: block;
}

.server-items:has(#container:not(:has(> .server-item:not([hidden])))) > .server-header {
    display: none;
}

/* Below 992px a server is a card: the table row would hide the price and the button off screen. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .server-items #container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .server-items #container > .server-item {
        margin-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .server-header {
        display: none;
    }

    .server-item {
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .server-item > div {
        margin: 5px 0;
    }

    .server-item > .si-0 {
        flex: 50px;
    }

    .server-item > .si-1 {
        flex: calc(100% - 50px);
    }

    .server-item > .si-1 .badge {
        left: inherit;
        right: 0;
    }

    .server-item > .si-2 {
        flex: 55%;
        padding-right: 10px;
    }

    .server-item > .si-3 {
        flex: 45%;
    }

    .server-item > .si-4,
    .server-item > .si-5 {
        width: auto;
        flex: 55%;
    }

    .server-item > .si-4 > .disk-caption {
        display: block;
    }
}

.custom-tab1 .tab-content .tab-pane {
    padding: 40px 0;
}

.custom-tab1 .package-detail ul {
    display: flex;
    flex-direction: column;
}

.custom-tab1 .package-detail ul li.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.custom-tab1 .package-detail li.spec-cpu {
    order: 1;
}

.custom-tab1 .package-detail li.spec-ram {
    order: 2;
}

.custom-tab1 .package-detail li.spec-disk {
    order: 3;
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f6;
}

.custom-tab1 .package-detail li.spec-note {
    order: 4;
}

.custom-tab1 .package-detail ul li.spec-key {
    align-items: center;
}

.custom-tab1 .package-detail ul li.spec-key span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.custom-tab1 .package-detail ul li.spec-key span::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.custom-tab1 .package-detail ul li.spec-cpu span::before {
    background-image: url("/assets/img/icon/spec/cpu.svg");
}

.custom-tab1 .package-detail ul li.spec-ram span::before {
    background-image: url("/assets/img/icon/spec/ram.svg");
}

.custom-tab1 .package-detail ul li.spec-disk span::before {
    background-image: url("/assets/img/icon/spec/disk.svg?v=2");
}

.custom-tab1 .package-detail ul li.spec-row span {
    color: var(--bs-dark-gray);
    font-size: 14px;
    font-weight: 600;
}

.custom-tab1 .package-detail ul li.spec-key b {
    font-size: 16px;
    font-weight: 800;
    text-align: right;
}

.custom-tab1 .package-detail ul li.spec-key b small {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bs-dark-gray);
}

.custom-tab1 .package-detail ul li.spec-note {
    padding-top: 4px;
    padding-bottom: 4px;
}

.custom-tab1 .package-detail ul li.spec-note span,
.custom-tab1 .package-detail ul li.spec-note b {
    font-size: 13px;
    font-weight: 600;
}

.custom-tab1 .package-detail ul li.spec-note b {
    color: #334155;
    text-align: right;
}

@media (max-width: 767.98px) {
    .custom-tab1 .tab-content .tab-pane {
        padding: 20px 0;
    }

    .custom-tab1 .tab-content .tab-pane .col-lg-3 {
        padding: 0 8px;
    }

    .custom-tab1 .tab-content .tab-pane .hosting-package .package-main {
        padding: 15px 10px 0;
    }

    .custom-tab1 .tab-content .tab-pane .hosting-package .package-main .title {
        font-size: 16px;
    }

    .custom-tab1 .tab-content .tab-pane .hosting-package .package-order {
        padding: 15px 10px;
    }

    .custom-tab1 .tab-content .tab-pane .hosting-package .package-detail {
        padding: 15px 10px;
    }

    .custom-tab1 .tab-content .tab-pane .hosting-package .package-detail ul li {
        font-size: 14px;
    }
}

.cloud-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cloud-cats .hosting-package {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}

.cloud-cats .package-main {
    flex: 1 1 auto;
}

.cloud-cats .title {
    min-height: 2.6em;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .cloud-cats {
        grid-template-columns: 1fr;
    }

    .cloud-cats .title {
        min-height: 0;
    }
}

.sunucu-story .content-text p {
    text-align: left;
    hyphens: manual;
}

.sunucu-story .content-img img {
    width: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(19, 19, 19, .08);
}

.sunucu-story .content-img img.story-aisle {
    object-position: center 42%;
}

.sunucu-story .content-img img.story-face {
    object-position: 35% center;
}

.sunucu-story .content-img img.story-net {
    object-position: 42% center;
}

.sunucu-story .content-img img.story-secure {
    object-position: 22% center;
}

/* Photo stories that follow each other share the gap between them. */
.sunucu-story:has(+ .sunucu-story) {
    padding-bottom: 0;
}

.sunucu-story + .sunucu-story {
    padding-top: 40px;
}

@media (max-width: 767.98px) {
    .sunucu-story .content-text p {
        text-align: left;
        text-align-last: auto;
        hyphens: manual;
    }
}

.heading .h-desc.dedi-list-lead {
    max-width: 46em;
    margin: 8px auto 0;
    line-height: 1.55;
}

.dedi-support .h-desc {
    max-width: none;
    margin: 8px auto 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--bs-dark-gray);
}

.dedi-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dedi-support-grid article {
    padding: 26px 22px 22px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    text-align: center;
}

.dedi-support-grid img {
    height: 56px;
    width: auto;
    margin-bottom: 12px;
}

.dedi-support-grid h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--bs-dark);
}

.dedi-support-grid p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--bs-dark-gray);
}

@media (max-width: 991.98px) {
    .dedi-support-grid {
        grid-template-columns: 1fr;
    }
}

/* Location section on the location landing pages (copy in includes/locations.php). */
.loc-about {
    padding: 40px 0 20px;
}

.loc-about .loc-about-related a {
    font-weight: 700;
    color: var(--bs-success-text);
    text-decoration: none;
}

.loc-about .loc-about-related a:hover {
    color: #0c7d60;
}

.loc-facts {
    margin: 0;
    padding: 6px 20px;
    border: 1px solid #dee7ef;
    border-radius: 6px;
    background-color: var(--bs-white);
}

.loc-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

.loc-facts > div:last-child {
    border-bottom: 0;
}

.loc-facts dt {
    font-weight: 700;
    color: var(--bs-dark);
}

.loc-facts dd {
    margin: 0;
    text-align: right;
}

@media (max-width: 991.98px) {
    .loc-facts {
        margin-top: 24px;
    }
}

.review-section {
    padding: 60px 0;
    background: var(--bs-light-gray);
}

.review-section .heading {
    margin-bottom: 30px;
}

.review-section .owl-item {
    padding: 10px;
}

.review-section .owl-dots {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
}

.review-section .owl-dots .owl-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 3px;
    background: var(--bs-gray);
    cursor: pointer;
}

.review-section .owl-dots .owl-dot.active {
    background: var(--bs-orange);
}

@media (max-width: 767.98px) {
    .review-section {
        overflow: hidden;
        padding: 30px 0;
    }

    .review-section .owl-dots {
        margin-top: 15px;
    }
}

/* Touch screens: each disk switch is 44px tall. */
@media (pointer: coarse) {
    .disk-picks .form-switch {
        min-height: 44px;
    }
}
