/*
Theme Name: Flyparkings
Description: Przykładowy motyw WordPress
Author: Bartosz Alejski
Version: 1.0
*/

/* =====================================
   BOOTSTRAP – PRIMARY COLOR OVERRIDE
   ===================================== */

:root {
    --bs-primary: #3171a7;
    --bs-primary-rgb: 49, 113, 167;

    --bs-link-color: #3171a7;
    --bs-link-hover-color: #285d8a;

    --bs-focus-ring-color: rgba(49, 113, 167, .25);
}

/* =====================
   LINKS
   ===================== */
a,
.link-primary {
    color: var(--bs-primary);
}

a:hover,
.link-primary:hover {
    color: #285d8a;
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #285d8a;
    --bs-btn-hover-border-color: #285d8a;
    --bs-btn-active-bg: #234f76;
    --bs-btn-active-border-color: #234f76;
    --bs-btn-focus-shadow-rgb: 49, 113, 167;
}

/* Secondary buttons outline */
.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
}

/* =====================
   BACKGROUNDS & TEXT
   ===================== */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

/* =====================
   FORMS
   ===================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(49, 113, 167, 0.25);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.15rem rgba(49, 113, 167, 0.25);
}

/* =====================
   NAVIGATION
   ===================== */
.nav-link.active,
.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
}

.nav-link {
    color: var(--bs-primary);
}

.nav-link:hover {
    color: #285d8a;
}

/* =====================
   PAGINATION
   ===================== */
.page-link {
    color: var(--bs-primary);
}

.page-link:hover {
    color: var(--bs-primary);
    background-color: rgba(49, 113, 167, 0.08);
    border-color: var(--bs-primary);
}

.page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* =====================
   ALERTS & BADGES
   ===================== */
.alert-primary {
    color: #0c2f4a;
    background-color: rgba(49, 113, 167, 0.15);
    border-color: rgba(49, 113, 167, 0.3);
}

.badge.bg-primary {
    background-color: var(--bs-primary);
}

/* =====================
   DROPDOWN
   ===================== */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--bs-primary);
}

/* =====================
   ACCORDION
   ===================== */
.accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background-color: rgba(49, 113, 167, 0.08);
}

.accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(49, 113, 167, .25);
}

/* =====================
   ALERT INFO – FLYPARKING
   ===================== */
.alert-info {
    color: var(--bs-primary); /* ciemny, czytelny tekst */
    background-color: rgba(49, 113, 167, 0.15);
    border-color: rgba(49, 113, 167, 0.35);
}

.alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-error a, 
.alert-danger a 
{
    color: #842028;
    text-decoration: underline;
    font-weight: bold;
}

.alert-error a:hover, 
.alert-danger a:hover 
{
    color: #842028;    
}


.bg-green
{
    background-color: #198754 !important
}

.bg-red
{
    background-color: #dc3545 !important;
}

.hand
{
    cursor: pointer;
}

/* =====================================
   STICKY FOOTER – FLYPARKING
   ===================================== */

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-style: normal;
    
}

/* Cała zawartość strony oprócz footera */
body > *:not(.site-footer) {
    flex-shrink: 0;
}

/* Footer zawsze na dole */
.site-footer {
    margin-top: auto;
    background-color: #3171a7;
    color: #ffffff;
    padding: 20px 0;
    font-size: 14px;
}

/* Wnętrze footera */
.site-footer .footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

/* Kolumny */
.site-footer .footer-col {
    min-width: 200px;
}

/* Linki */
.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom 
{
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 12px;
    font-size: 13px;
    opacity: 0.9;    
}

.navbar-brand, .navbar-nav > li > a 
{
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  color: #000 !important;
  font-size: 20px;
}

#user-menu .navbar-nav > li > a 
{
  font-size: 16px;
}

.card-header a
{
    text-decoration: none;
}

.lead strong 
{
    font-weight: 700;
}

.card-header small
{
    font-size: 16px;
}

.top-text h1
{
    color:#fff;        
    text-align: center;
    font-size: 2.7rem !important;
    padding: 10px;        
}

.stone
{
    background-image: url(/wp-content/themes/flyparkings/assets/images/concrete_seamless.png);
    background-repeat: repeat;
}

.my-shadow 
{
    text-shadow: 2px 2px 4px #000;    
}

.blue
{
    background: #3171a7;
    background: #0e395e99;
}

.text-white
{
    color:#fff;
}


#search 
{
    background-color:rgba(255, 255, 255, 0.9)
    -webkit-box-shadow: 0px 0px 20px 3px rgba(0,0,0,1);
    -moz-box-shadow: 0px 0px 20px 3px rgba(0,0,0,1);
    box-shadow: 0px 0px 20px 3px rgba(0,0,0,1);
}

#show-reservation .card 
{
    margin-bottom:15px;    
}

/* =====================================
   FOOTER – MOBILE FIX
   ===================================== */
@media (max-width: 768px) {

    .site-footer {
        text-align: center;
    }

    .site-footer .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        padding: 0 20px;
    }

    .site-footer .footer-col {
        max-width: 360px;
        width: 100%;
    }

    .site-footer .footer-col strong {
        display: block;
        margin-bottom: 8px;
        font-size: 16px;
    }

    .site-footer .footer-col p {
        margin-bottom: 6px;
        line-height: 1.5;
    }

    .site-footer a {
        display: inline-block;
        margin: 4px 0;
    }

    .site-footer .btn {
        margin-top: 10px;
    }

    .footer-bottom {
        text-align: center;
        padding-left: 16px;
        padding-right: 16px;
        line-height: 1.4;
    }
}



#home-page-banner {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url(/wp-content/themes/flyparkings/assets/images/parking.jpg) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#homepage-lead
{    
    max-width: 1000px;
    margin: 60px auto;
}

#home-page-banner
{
    height: 500px;
	padding: 1px;
	-webkit-box-shadow: inset 0px 1px 23px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: inset 0px 1px 23px 0px rgba(0,0,0,0.75);
	box-shadow: inset 0px 1px 23px 0px rgba(0,0,0,0.75);
}

.terms-checkbox
{
    background: #f2f2f2;
    padding: 8px 10px 6px 10px;
    margin-bottom: 10px;
}


.btn-outline-primary
{
    color: #285d8e;
    border-color: #245580;
}

.btn-outline-primary:hover {
      background-image:-webkit-linear-gradient(top,#337ab7 0,#265a88 100%);
  background-image:-o-linear-gradient(top,#337ab7 0,#265a88 100%);
  background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));
  background-image:linear-gradient(to bottom,#337ab7 0,#265a88 100%);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);
  filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);
  background-repeat:repeat-x;
  border-color:#245580
}

.form-check-input.is-valid~.form-check-label a
{
    color: #198754;
}

.form-check-input.is-invalid~.form-check-label a
{
    color: #dc3545;
}

.summary-inputs .form-check-input
{
    float: right;
}

.summary-inputs label
{
    margin-right: 30px;
}

.highlighted-date {
  background-color: #ffcccc !important;
  color: red !important;
}

/*.btn-primary {
  color: #fff;
  background-color: #3173ad;
  border-color: #5b89b2;
}*/

.btn-primary:hover {
  color: #fff;
  background-color: #1e5a8e;
  border-color: #3173ad;
}

/*.btn-primary:disabled, .btn-primary.disabled {
  color: #fff;
  background-color: #3173ad;
  border-color: #6892b7;
}*/

a {
  color: #3173ad;
  text-decoration: underline;
}

#search .card-header {
  background-image: linear-gradient(to bottom, #337ab7 0px, #265a88 100%);
  background-repeat: repeat-x;
  border-color: #245580;
  color: #fff;
}

#search .card-header h2
{
    font-size: 1.2rem;
}


.btn-primary {
  background-image:-webkit-linear-gradient(top,#337ab7 0,#265a88 100%);
  background-image:-o-linear-gradient(top,#337ab7 0,#265a88 100%);
  background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));
  background-image:linear-gradient(to bottom,#337ab7 0,#265a88 100%);
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);
  filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);
  background-repeat:repeat-x;
  border-color:#245580
}


.email-address 
{
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: sub;
    color: green;
}

#user-menu
{
    padding: 0px;
    background-color: #efefef !important;
    border-bottom: 2px solid #dedede;
}

#user-menu .dropdown-menu
{
    margin: 0px;
    padding: 0px;
}

#user-menu .dropdown-menu .dropdown-divider
{
    margin: 0px;
    padding: 0px;
}

#user-menu .dropdown-menu li a
{
    padding: 10px 15px;
}

#user-menu .dropdown-menu li .fa-solid
{
    padding: 5px;
}

/* Upewnij się, że rodzic (dropdown) ma pozycjonowanie względne */
.nav-item.dropdown {
  position: relative;
}

/* Ustaw dropdown-menu jako absolutnie pozycjonowane 
   i wyświetlane na wierzchu */
.nav-item.dropdown .dropdown-menu 
{
  position: absolute;
  top: 100%;
  right: 0;     /* dzięki temu zadziała też .dropdown-menu-end */
  left: auto;
  z-index: 1000; /* w razie potrzeby większa wartość */
}


.form-control[readonly] 
{
     background-color: #fff !important;
  
}

#price, .price 
{
    font-size: 36px;
}

#list-parking-search.is-sticky {
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    border-bottom: 1px solid #eee;
    z-index: 1020; /* powyżej contentu */
    background: #fff; 
}

#list-parking-search
{
    padding: 10px 0px;
}




/* =========================
 * PAGINATION – FLYPARKING
 * ========================= */

.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .25rem;
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.page-numbers li {
    margin: 0;
}

/* Linki i elementy */
.page-numbers a,
.page-numbers span {
    display: block;
    min-width: 38px;
    padding: .5rem .75rem;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.25;
    transition: all .15s ease-in-out;
}

/* Hover */
.page-numbers a:hover {
    background-color: rgba(49, 113, 167, 0.08);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

/* Aktywna strona */
.page-numbers .current {
    background-color: var(--bs-primary);
    color: #ffffff;
    border-color: var(--bs-primary);
    cursor: default;
}

/* Poprzednia / następna */
.page-numbers .prev,
.page-numbers .next {
    font-weight: 600;
}




/* Mobile */
@media (max-width: 576px) {
    .page-numbers {
        flex-wrap: wrap;
        gap: .4rem;
    }

    .page-numbers a,
    .page-numbers span {
        min-width: 36px;
        padding: .45rem .65rem;
        font-size: 14px;
    }
}

.parking-thumb {
    width: 100%;
    height: 180px;                 /* stała wysokość */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    background-color: #f2f2f2;
}

.parking-thumb.big 
{
    
    height: 300px;                 /* stała wysokość */    
}

.container
{
    margin-bottom: 60px !important;
}

.navbar .container
{
    margin-bottom: 0px !important;
}


.titillium-web-extralight {
  font-family: "Titillium Web", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.titillium-web-light {
  font-family: "Titillium Web", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.titillium-web-regular {
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.titillium-web-semibold {
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.titillium-web-bold {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.titillium-web-black {
  font-family: "Titillium Web", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.titillium-web-extralight-italic {
  font-family: "Titillium Web", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.titillium-web-light-italic {
  font-family: "Titillium Web", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.titillium-web-regular-italic {
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.titillium-web-semibold-italic {
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.titillium-web-bold-italic {
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
  font-style: italic;
}




/* =========================
   PRICE CARD
   ========================= */

.price-card {
  border: 1px solid #d0d7de;
  border-radius: 14px;
  padding: 14px 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.price-card small {
  display: block;
  color: #6c757d;
  margin-bottom: 4px;
}

.price-card .price {
  font-weight: 600;
  color: #0d6efd;
  font-size: 16px;
}

.price-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.12);
  transform: translateY(-2px);
}

/* =========================
   WRAPPER
   ========================= */

.price-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================
   NAV ARROWS (CUSTOM)
   ========================= */

.price-nav {
  width: 42px;
  height: 42px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  background: #fff;
  color: #6c757d;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.price-nav:hover {
  border-color: #0d6efd;
  color: #0d6efd;
  box-shadow: 0 .25rem .5rem rgba(0,0,0,.15);
}

/* =========================
   BOOTSTRAP CAROUSEL FIX
   ========================= */

/* Ukrywamy domyślne strzałki Bootstrapa */
.carousel-control-prev,
.carousel-control-next {
  display: none;
}

.carousel-inner .col {
    padding: 10px;
}

/* 7 kolumn tylko na desktop */
@media (min-width: 992px) {
  .price-cols-7 > .col {
    flex: 0 0 calc(100% / 7);
    max-width: calc(100% / 7);
  }
}
