/*
 Theme Name:   MOSIR - ZAKOPANE
 Template:   twentytwenty
 Description:  A child theme of Twenty Twenty WordPress theme. Tailored for MOSIR Zakopane theme.
 Author:       MOSIR ZAKO
 Version:      1.0.2
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

@import url('../twentytwenty/style.css');


/*  
 * post type - obiekt
 * 
 * 
 * */

.ms_post-container {
    margin: 40px auto;
    padding: 0;
}

.ms_hero-row {
    display: flex;
	flex-wrap: nowrap;
    align-items: stretch;
	align-content: stretch;
    gap: 10px;
    margin-bottom: 4rem; 
}

.ms_post-container h1 {
	margin: 0 0 3rem 0;
	font-size: 44px;
}

.ms_hero-content,
.ms_hero-image {
	display: flex;
	flex-direction: column;
	justify-content: space-around;

}

.ms_hero-content {
	width: 30%;
	background-color: #f2f2f2;
	padding: 20px;
	border-radius: 25px;
}

.ms_hero-image {
	width: 70%;

}

.ms_object-details {
	font-size: 1.8rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;

}

.ms_cta-wrapper {
	background-color: #07004d;
	text-align: center;
	padding: 1rem;
	border-radius: 25px;
}

.ms_cta-wrapper a{
	display: block;
	width: 100%;
    color: white;
	text-decoration: none;
}

.ms_hero-image img.ms_featured-img {
    width: 100%;
    border-radius: 25px;
    display: block;
	aspect-ratio: 16 / 9;
}

.ms_text-row {
    width: 100%;
	margin-bottom: 4rem;
}

.ms_gallery-row {
    width: 100%;
}

#cennik, #opis, #galeria, #aktualnosci, #wydarzenia, #obiekty, #szkoly {
	scroll-margin-top: 120px;    
}

/* Poniżej 768px (tablety i telefony) zamieniamy układ na pionowy */
@media (max-width: 768px) {
    .ms_hero-row {
        flex-direction: column-reverse;
    }
    .ms_hero-content,
    .ms_hero-image {
        width: 100%;
    }
}



/* 
 * 
 * post type - aktualności
 * 
 *  */

.single-aktualnosc .ms_hero-image img.ms_featured-img {
    width: 100%;
    border-radius: 25px;
    display: block;
	aspect-ratio: unset;
}

    .ms_news-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .ms_btn {
        display: inline-block;
        padding: 12px 24px;
        text-decoration: none;
        font-weight: 600;
        border-radius: 4px;
        transition: background 0.3s ease;
        text-align: center;
    }
    .ms_btn-result {
        background-color: #0073aa; /* Kolor Astra/WP */
        color: #fff !important;
    }
    .ms_btn-gallery {
        background-color: #333;
        color: #fff !important;
    }
    .ms_btn:hover {
        opacity: 0.9;
    }

/* 
 * 
 * post type -przetargi
 * 
 *  */

/* --- Style dla Przetargów (Files) --- */

.single-przetarg .ms_hero-content {
	width: 100%;
}

.single-przetarg .ms_hero-image {
	display: none;
}


.ms_meta-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.ms_offer-image-row {
	display: flex;
    justify-content: center;
	margin-bottom: 2rem;
}

.ms_offer-image-row img{
	border: 1px solid #000;
}

/* Kontener sekcji plików */
.ms_files-section {
    margin: 0 auto 60px auto;
    padding: 30px;
    background-color: #f0f2f5; /* Lekko szare tło */
    border-radius: 25px;
    border-left: 5px solid var(--accent-color); /* Pasek koloru po lewej */
}

.ms_files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Karta pliku (Przycisk) */
.ms_file-card {
    display: flex;
    align_items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e5e5;
    flex: 1; /* Karty rozciągają się równo */
    min-width: 250px; /* Żeby nie były za wąskie na mobile */
}

.ms_file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    border-color: var(--accent-color);
}

/* Ikona PDF (Dashicon) */
.ms_file-card .dashicons {
    font-size: 24px;
    width: 30px;
    height: 30px;
    margin-right: 15px;
    color: #d32f2f; /* Kolor czerwony (PDF style) */
    display: flex;
    align_items: center;
}