/* form-elements */

a.btn {
    display: inline-block;
    font-weight: 500;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1em;
    width: fit-content;
    font-family: "Rubik", serif;
    cursor: pointer;
}

a.btn-primary, a.btn-primary:visited {
    background: linear-gradient(180deg, #ff7914, #9b4100);
    color: #fbe1cc;
    box-shadow: 0 4px 8px rgb(90 53 37);
    transition: all 0.3s ease;
    border: solid 2px #d15f0b;
}

a.btn-primary:hover {
    background: linear-gradient(180deg, #ff8f3f, #8e3e02);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 8px 14px rgb(90 53 37);
    transform: translateY(-1px);
    border: solid 2px #f17112;
}

a.btn-primary:active {
    background: linear-gradient(180deg, #e07010, #7a3700);
    box-shadow: 0 2px 4px rgb(90 53 37);
    transform: translateY(2px);
    transition: all 0.1s ease;
    border: solid 2px #984406;
}

a.btn-secondary, a.btn-secondary:visited {
    padding: 10px 20px;
    background: linear-gradient(180deg, #d4f3cb, #859680);
    color: #1a272f;
    box-shadow: 0 4px 8px rgb(26, 39, 47);
    transition: all 0.3s ease;
    border: solid 2px #293f4c;
}

a.btn-secondary:hover {
    background: linear-gradient(180deg, #859680, #d4f3cb);
    color: #1a272f;
    box-shadow: 0 8px 14px rgb(26, 39, 47);
    transform: translateY(-1px);
    border: solid 2px #426b83;
}

a.btn-secondary:active {
    background: linear-gradient(180deg, #7a8a75, #a3c39a);
    box-shadow: 0 2px 4px rgb(26, 39, 47);
    transform: translateY(2px);
    transition: all 0.1s ease;
    border: solid 2px #284353;
}

a.btn-tertiary, .a.btn-tertiary:visited {
    padding: 10px 20px;
    background: transparent;
    color: var(--primary-color-dark);
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    font-family: "Merriweather", serif;
    border: solid 2px var(--primary-color-dark);
}

a.btn-tertiary:hover {
    background: #333;
    color: #fff;
}


.col a.btn {
    margin: 2rem 0;
}


/*MODAL*/
dialog {
    width: 80%;
    max-width: 1400px;
    padding: 20px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #000000;
    text-align: center;
    z-index: 1000;
    position: fixed;
    left: calc(50%);
    top: 50%;
    transform: translate(-50%, -50%);
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    background-color: rgb(21 11 3 / 89%);
}

.modal-options {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

dialog input {
    margin-right: 12px;
}

dialog label {
    display: block;
    margin-top: 20px;
    color: var(--secondary-color-light);
}


/*ACCORDION*/
.accordion {
    max-width: 600px;
    margin: 0 auto;
    border: none;
    overflow: hidden;
    background-color: var(--secondary-color-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

details {
    border-bottom: 4px solid var(--secondary-color-dark);
    overflow: hidden;
}

details:last-child {
    border-bottom: none;
}

summary {
    cursor: pointer;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: var(--secondary-color-light);
    transition: background-color 0.3s ease;
    user-select: none;
    list-style: none;
}

summary:hover {
    background-color: var(--primary-color-light);
    color: var(--primary-color-dark);
}

details[open] summary {
    color: white;
    background-color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    padding: 0 15px;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background-color: #fff;
}

details[open] .accordion-content {
    max-height: 500px;
    padding: 15px;
}

.accordion-content h2 {
    margin-top: 0;
    color: #222;
    font-size: 1.2rem;
}

.accordion-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}


.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    background: rgba(26, 39, 47, 0.4) !important;
    color: var(--secondary-color-light) !important;
    border: none;
    font-size: 3.2rem;
    font-weight: lighter;
    line-height: 3.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0;
    z-index: 100;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: rgb(26, 39, 47) !important;
}

.owl-carousel .owl-nav button.owl-prev:active,
.owl-carousel .owl-nav button.owl-next:active {
    background: var(--primary-color) !important;
}

.owl-carousel .owl-nav button.owl-prev {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
}

.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
}

.owl-carousel .owl-dots {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 8px;
}

.owl-carousel .owl-dot {
    width: 10%;
    height: 4px;
    background: var(--secondary-color-light) !important;
    border-radius: 0;
    margin: 0 5px;
    transition: background 0.3s ease;
}

.owl-carousel .owl-dot.active {
    background: var(--primary-color) !important;
    transform: scale(1.2);
}


/* FILTERS */
.filters {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: normal;
    justify-content: flex-start;
    min-width: 200px;
    max-width: 340px;

    @media (max-width: 980px) {
        gap: 2rem;
        max-width: fit-content;
    }
}

.filter-group {
    margin-bottom: 12px;
    flex: 1;
    @media (max-width: 980px) {
        flex-basis: 200px;
        flex-shrink: 1;
        flex-grow: 4;
    }
}

.big-group {
    @media (max-width: 980px) {
        flex-basis: 200px;
        flex-shrink: 1;
        flex-grow: 4;
    }
}

select {
    padding: 5px 0;
    border: none;
    border-bottom: thin solid var(--secondary-color);
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
    color: var(--secondary-color-light);
    transition: width 0.3s ease;
    margin: 0;
    border-radius: 0;
    appearance: none; /* Removes default styles */
    cursor: pointer;
}

/* Add a custom dropdown arrow */
select {
    background-image: linear-gradient(45deg, transparent 50%, var(--secondary-color) 50%),
    linear-gradient(135deg, var(--secondary-color) 50%, transparent 50%);
    background-position: calc(100% - 15px) center, calc(100% - 10px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 20px;
}

/* Optional: Style the dropdown options */
select option {
    color: var(--secondary-color);
    background: white;
}


label {
    font-weight: normal;
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: var(--secondary-color);
}


/*CHEKBOX*/

.checkbox-group {
    display: flex;
    flex-direction: column;
}

.checkbox-group label {
    font-weight: normal;
    display: inline-block;
    margin-right: 10px;
}

.checkbox-list label {
    font-size: 16px;
    color: var(--secondary-color-light);
}


/*//SLİDER*/

.slider-container {
    margin: 10px auto;
    position: relative;
}

.slider {
    position: relative;
    height: 6px;
    background: #ccc;
    border-radius: 3px;
}

.slider .progress {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.slider input {
    position: absolute;
    top: -5px;
    width: 100%;
    background: none;
    -webkit-appearance: none;
    pointer-events: none;
}

/* Customizing the slider handles */
.slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    pointer-events: all;
}

.slider input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--secondary-color-light);
    font-weight: normal;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

tr {
    padding: 0 0 2rem 0;
    border-top: solid thin var(--primary-color);
}

td {
    @media (max-width: 980px) {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.5rem 0;
        @media (max-width: 980px) {
            padding: 0 0 20px 0;
        }
    }
}

td:first-child {
    width: 20%;
    max-width: 200px;
    font-weight: bold;
    font-size: 18px;
    text-align: left;
    vertical-align: top;
    @media (max-width: 980px) {
        width: 100%;
        padding: 0;
    }

}

td p {
    @media (max-width: 980px) {
        padding-bottom: 0;
    }
}

td:first-child p {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0; /* Removes extra spacing */

}

