/**
 * Main Stylesheet
 * Domesta.cz - Cestovatelský portál
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --primary-dark: #E74C3C;
    --secondary-color: #FDB813;
    --dark-gray: #2C2C2C;
    --light-gray: #f5f7fa;
    --text-color: #333;
    --border-color: #e1e8ed;
}

.mbto40 { margin-bottom: 20px}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color:var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
   background: #ffffff url(/i/blline.png) 0 10px repeat-x;
    

}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo img {
    
    margin-right: 10px;
}

.logo span {
    
    display:none;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    padding-top: 10px;
}

.main-nav > a,
.nav-dropdown .dropdown-toggle {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav > a:hover,
.nav-dropdown:hover .dropdown-toggle {
    color: var(--secondary-color);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    margin-top: 15px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 5px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.header-search {
    position: relative;
}

.desktop-search {
    display: block;
    padding-top: 9px;
}

.mobile-search {
    display: none;
}

.search-input {
    padding: 8px 40px 8px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    width: 250px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
}

.search-btn {
   position: absolute;
    right: 15px;
    top: calc(50% + 4px);
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 20px 10px 10px 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    position: absolute;
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,60 600,30 T1200,0 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') bottom repeat-x;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search form {
    display: flex;
    gap: 10px;
}

.hero-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

.hero-search-btn {
    padding: 15px 40px;
    background-color: var(--secondary-color);
    color: var(--dark-gray);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-search-btn:hover {
    background-color: #FFD700;
    transform: scale(1.05);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2,.section-header h1 {
    font-size: 36px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* Cities Grid */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.city-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.city-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.city-card-link {
    text-decoration: none;
    color: inherit;
}

.city-card-image {
    height: 200px;
    overflow: hidden;
}

.city-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.city-card:hover .city-card-image img {
    transform: scale(1.1);
}

.city-card-content {
    padding: 20px;
}

.city-card-content h3 {
    font-size: 22px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.city-country {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}

.city-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.city-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
}

.article-city {
    color: var(--primary-color);
    font-weight: 600;
}

.article-date {
    color: #999;
}

.article-card h3 {
    font-size: 20px;
    color: var(--dark-gray);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-stats {
    color: #999;
    font-size: 13px;
}

/* Popular Articles */
.popular-articles {
    background-color: var(--light-gray);
}

.popular-list {
    max-width: 800px;
    margin: 0 auto;
}

.popular-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.popular-rank {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-right: 20px;
}

.popular-content {
    flex: 1;
}

.popular-content h4 {
    margin-bottom: 5px;
}

.popular-content h4 a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.popular-content h4 a:hover {
    color: var(--primary-color);
}

.popular-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 15px;
}

/* CTA Section */
/* Continents & Countries Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFD700 100%);
    padding: 60px 0;
}

.cta-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.cta-section .section-header h2 {
    font-size: 36px;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.cta-section .section-header p {
    font-size: 18px;
    color: #555;
}

.continent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    
    margin: 0 auto;
}

.continent-tag {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.continent-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.continents-compact {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .continents-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

.continent-item {
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s;
}

.continent-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.continent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.continent-name {
    font-size: 22px;
    margin: 0;
    font-weight: 700;
}

.continent-name a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    position: relative;
}

.continent-name a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.continent-name a:hover {
    color: var(--primary-color);
}

.continent-name a:hover::after {
    width: 100%;
}

.continent-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 50%;
    color: var(--primary-color);
}

.continent-toggle:hover {
    background: rgba(255, 107, 107, 0.1);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.continent-item.expanded .toggle-icon {
    transform: rotate(180deg);
}

.countries-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.continent-item.expanded .countries-inline {
    max-height: 1000px;
    opacity: 1;
    margin-top: 15px;
}

.country-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.country-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-view-all {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.footer-view-all:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

.footer-legal-links {
    margin-top: 10px;
}

.footer-legal-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: #FF6B6B;
    text-decoration: underline;
}

.footer-legal-links span {
    color: #666;
    margin: 0 10px;
}

/* Article Detail */
.article-detail {
    background: var(--light-gray);
    padding: 40px 0 80px;
}

.breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    padding: 15px 0;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
}

.breadcrumbs span {
    margin: 0 8px;
    color: #ccc;
}

.article-header {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.article-header h1 {
    font-size: 42px;
    color: var(--dark-gray);
    line-height: 1.3;
    margin-bottom: 25px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--light-gray);
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #666;
}

.meta-item strong {
    color: var(--dark-gray);
    margin-right: 5px;
}

.meta-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.meta-item a:hover {
    color: var(--primary-dark);
}

.article-perex {
    background: var(--light-gray);
    padding: 20px 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.article-perex p {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Hero Photo (Main photo under title) */
.article-hero-photo {
    margin: 0 0 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-hero-photo img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.article-hero-photo figcaption {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    font-size: 13px;
    text-align: right;
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.article-main {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.article-maina {
   
   
   
    
}

.article-mainb {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 28px;
    color: var(--dark-gray);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.article-content h3 {
    font-size: 22px;
    color: var(--dark-gray);
    margin: 30px 0 15px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.article-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* Bottom Gallery (2 photos side by side) */
.article-bottom-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--light-gray);
}

.gallery-photo {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.gallery-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-photo figcaption {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    font-size: 12px;
    text-align: right;
}

/* Article Tags */
.article-tags {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-tags strong {
    color: var(--dark-gray);
    margin-right: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    margin: 5px 5px 5px 0;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Social Sharing */
.social-sharing {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 10px;
}

.social-sharing strong {
    display: block;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #155db2;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #0d8bd9;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #1eaa52;
}

/* Author Bio */
.author-bio {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 4px solid var(--secondary-color);
}

.author-bio h3 {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 20px;
}

.author-bio p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;
}

.author-bio a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    color: var(--dark-gray);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.city-articles-nav {
    list-style: none;
}

.city-articles-nav li {
    margin-bottom: 12px;
}

.city-articles-nav li.active a {
    color: var(--primary-color);
    font-weight: 600;
}

.city-articles-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s;
}

.city-articles-nav a:hover {
    color: var(--primary-color);
}

.related-article {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.related-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-article a {
    text-decoration: none;
}

.related-article h4 {
    color: var(--dark-gray);
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.related-article a:hover h4 {
    color: var(--primary-color);
}

.related-meta {
    font-size: 13px;
    color: #999;
}

/* Comments */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid var(--light-gray);
}

.comments-section h2 {
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-size: 28px;
}

.comment-form-container {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.comment-form-container h3 {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rating-input {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    padding: 8px 15px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.rating-input input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-submit {
    padding: 12px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.comment {
    padding: 25px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-header strong {
    color: var(--dark-gray);
}

.comment-date {
    font-size: 13px;
    color: #999;
}

.comment-rating {
    margin-bottom: 10px;
    font-size: 14px;
}

.comment-text {
    color: #666;
    line-height: 1.7;
}

/* Page Header (used on continent, country, tag pages) */
.page-header {
    text-align: center;
    padding: 40px 0 30px;
}

.page-header h1 {
    font-size: 48px;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.page-header .subtitle {
    font-size: 20px;
    color: #666;
}

/* Countries Filter */
.countries-filter {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.countries-filter h3 {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.countries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.country-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.country-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Continent Detail & Country Detail Pages */
.continent-detail,
.country-detail,
.tag-detail,
.blog-page {
    background: var(--light-gray);
    padding: 40px 0 80px;
}

.no-cities-message,
.no-articles-message {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
}

/* Tag Articles Section */
.tag-articles-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.tag-articles-grid {
    display: grid;
    gap: 20px;
}

.tag-article-item {
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tag-article-item:hover {
    border-color: var(--primary-color);
    background: var(--light-gray);
}

.tag-article-item .article-link {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: inherit;
}

.article-meta-top {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
}

.article-city {
    color: var(--primary-color);
    font-weight: 600;
}

.article-country {
    color: #999;
}

.tag-article-item h3 {
    font-size: 22px;
    color: var(--dark-gray);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s;
}

.tag-article-item:hover h3 {
    color: var(--primary-color);
}

/* Blog Articles Section */
.blog-articles-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.blog-articles-grid {
    display: grid;
    gap: 20px;
}

.blog-article-item {
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.blog-article-item:hover {
    border-color: var(--primary-color);
    background: var(--light-gray);
}

.blog-article-item .article-link {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: inherit;
}

.article-date {
    color: #999;
    font-size: 13px;
}

.blog-article-item h3 {
    font-size: 22px;
    color: var(--dark-gray);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-article-item:hover h3 {
    color: var(--primary-color);
}

/* City Detail Page */
.city-detail {
    background: var(--light-gray);
    padding: 40px 0 80px;
}

.city-header {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.city-header h1 {
    font-size: 48px;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.city-location {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.city-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 25px;
    border-top: 2px solid var(--light-gray);
    font-size: 14px;
}

.stat-item {
    color: #666;
}

.stat-item strong {
    color: var(--primary-color);
    font-weight: 700;
}

.city-main-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.city-main-content p {
    margin-bottom: 20px;
}

.city-main-content h2 {
    font-size: 28px;
    color: var(--dark-gray);
    margin: 30px 0 20px;
}

/* City Bottom Gallery (2 photos side by side) */
.city-bottom-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.city-articles-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.city-articles-section h2 {
    font-size: 32px;
    color: var(--dark-gray);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.city-articles-sectiona {
  margin-bottom: 40px
}

.city-articles-sectiona h2 {
    font-size: 32px;
    color: var(--dark-gray);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.city-articles-list {
    display: grid;
    gap: 20px;
}

.city-article-item {
    border-radius: 10px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.city-article-item:hover {
    border-color: var(--primary-color);
    background: var(--light-gray);
}

.article-link {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: inherit;
}

.city-article-item h3 {
    font-size: 22px;
    color: var(--dark-gray);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s;
}

.city-article-item:hover h3 {
    color: var(--primary-color);
}

.article-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.city-article-item:hover .read-more-link {
    color: var(--primary-dark);
}

.no-articles-message {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
}

/* ==========================
   BLOG PAGE STYLES
   ========================== */
.blog-page {
    padding: 40px 0;
}

.blog-articles-section {
    margin-top: 30px;
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-article-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    overflow: hidden;
}

.blog-article-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.blog-article-item .article-link {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: inherit;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-meta-top .article-date {
    color: #666;
    font-size: 14px;
}

.ai-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.article-meta-top .article-views {
    color: #999;
    font-size: 13px;
    margin-left: auto;
}

.blog-article-item h3 {
    font-size: 22px;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.blog-article-item:hover h3 {
    color: var(--primary-color);
}

.blog-article-item .article-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-article-item .read-more-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.blog-article-item:hover .read-more-link {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 900px) {
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
      height: 100vh;
        background: var(--dark-gray);
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav > a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block;
        width:100%;
        text-align:left
    }

    .nav-dropdown {    width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-dropdown .dropdown-toggle {
        padding: 15px 0;
        display: block;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        margin: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        max-height: 800px;
        overflow-y: auto;
    }

    .dropdown-menu a {
        color: rgba(255,255,255,0.8);
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }

    /* Mobile Search in Menu */
    .mobile-search {
        display: block;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-search form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-search .search-input {
        width: 100%;
        padding: 12px 15px;
        border-radius: 8px;
    }

    .mobile-search .search-btn {
        position: static;
        transform: none;
        width: 100%;
        padding: 12px;
        background: var(--primary-color);
        border-radius: 8px;
        font-weight: 600;
        transition: background 0.3s;
    }

    .mobile-search .search-btn:hover {
        background: var(--primary-dark);
    }

    /* Hide desktop search */
    .desktop-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-search form {
        flex-direction: column;
    }

    .section {
        padding: 20px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .cities-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    /* Article Detail Mobile */
    .article-header {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 28px;
       margin: 0 0 20px 0;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-main {
        padding: 20px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 24px;
       margin: 0 0 20px 0;
    }

    .article-content h3 {
        font-size: 20px;
       margin: 0 0 20px 0;
    }

    /* Bottom Gallery - Stack on mobile */
    .article-bottom-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-photo img {
        height: 200px;
    }

    .article-sidebar {
        position: static;
    }

    .social-sharing {
        padding: 20px;
    }

    .share-btn {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    /* City Detail Mobile */
    .city-header {
        padding: 20px 0;
    }

    .city-header h1 {
        font-size: 32px;
        margin: 0 0 20px 0;
    }

    .city-location {
        font-size: 16px;
    }

    .city-main-content {
        padding: 25px;
        font-size: 16px;
    }

    /* City Bottom Gallery - Stack on mobile */
    .city-bottom-gallery {
        grid-template-columns: 1fr;
    }

    .city-articles-section {
        padding: 25px;
    }

    .city-articles-section h2 {
        font-size: 24px;
        margin: 0 0 20px 0;
    }

   .city-articles-sectiona h2 {
        font-size: 24px;
        margin: 0 0 20px 0;
    }


    .article-link {
        padding: 20px;
    }

    .city-article-item h3 {
        font-size: 18px;
        margin: 0 0 20px 0;
    }

    /* Blog Page Mobile */
    .blog-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-article-item .article-link {
        padding: 20px;
    }

    .blog-article-item h3 {
        font-size: 19px;
    }
    
    h1,h2,h3,h4,h5 {line-height: 1.2em !important;}
    .continent-detail {
    padding: 20px 0px !important;
}

.breadcrumbs {
    
    margin-bottom: 10px;
    padding: 5px 0;
}

.continent-detail, .country-detail, .tag-detail, .blog-page {
 
    padding: 20px 0 0;
}

.article-mainb {
     padding: 20px;
    
}
}
