/*
Theme Name: KorculaTravel3.0
Theme URI: https://korculatravel.com
Description: Custom theme for korculatravel blog
Version: 1.0
Author: KoTr
*/

@charset "UTF-8";

/* Reset and base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: #222; background: #fff; line-height: 1.7; }
a { color: #2E546B; }

/* Layout */
.wrap { max-width: 930px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   Header
   ============================================================ */
header { background: #2E546B; color: #fff; padding: 16px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
header .site-name { color: #fff; text-decoration: none; font-size: 1.3em; font-weight: bold; }
.header-search { max-width: 320px; flex: 1; margin-left: auto; }
.header-search input {
    padding: 7px 12px; font-size: 0.9em;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff; border-radius: 4px 0 0 4px;
}
.header-search input::placeholder { color: rgba(255,255,255,0.6); }
.header-search input:focus { outline: none; background: rgba(255,255,255,0.25); }
.header-search button {
    padding: 7px 12px; background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3); border-left: none;
    color: #fff; border-radius: 0 4px 4px 0; cursor: pointer;
}
.header-search button:hover { background: rgba(255,255,255,0.35); }

/* Search results dropdown */
.search-results { background: #fff; border-radius: 5px; margin-top: 6px;
                  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
                  display: none; text-align: left; overflow: hidden; }
.search-results.active { display: block; }
.sr-item { padding: 10px 16px; border-bottom: 1px solid #eee; cursor: pointer;
           font-size: 0.95em; color: #222; }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: #f0f4f8; }
.sr-item .sr-type { font-size: 0.78em; color: #888; text-transform: uppercase; margin-left: 8px; }
.sr-item .sr-sub  { font-size: 0.82em; color: #666; margin-top: 2px; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb { padding: 10px 0; font-size: 0.9em; color: #666; }
.breadcrumb a { color: #2E546B; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: #bbb; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 30px 0 20px; border-bottom: 2px solid #eee; margin-bottom: 24px; }
.hero h1 { font-size: 2em; color: #2E546B; margin-bottom: 8px; }
.hero .meta { font-size: 0.95em; color: #555; }
.hero .meta span { margin-right: 16px; }

/* ============================================================
   Section titles
   ============================================================ */
.section-title { font-size: 1.4em; color: #2E546B; margin: 32px 0 16px;
                 padding-bottom: 8px; border-bottom: 1px solid #2E546B; }

/* ============================================================
   Footer
   ============================================================ */
footer { background: #2E546B; color: #aac; padding: 24px 0; margin-top: 60px;
         font-size: 0.9em; text-align: center; }
footer a { color: #cde; text-decoration: none; }
footer a:hover { color: #fff; }
footer .footer-links { margin-top: 8px; }
footer .footer-links a { margin: 0 10px; }

/* ============================================================
   Blog layout
   ============================================================ */
.blog-wrap { max-width: 930px; margin: 0 auto; padding: 0 20px; }
.blog-layout { display: flex; gap: 40px; margin-top: 24px; align-items: flex-start; }
.blog-main   { flex: 1 1 620px; min-width: 0; }
.blog-aside  { flex: 0 0 260px; }

/* ============================================================
   Post list
   ============================================================ */
.post-list { list-style: none; }
.post-card {
    border: 1px solid #dde; border-radius: 6px; padding: 24px 26px;
    margin-bottom: 24px; background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); border-color: #2E546B; }
.post-card .post-title { font-size: 1.4em; margin-bottom: 8px; }
.post-card .post-title a { color: #2E546B; text-decoration: none; font-weight: 700; }
.post-card .post-title a:hover { text-decoration: underline; }
.post-meta { font-size: 0.85em; color: #888; margin-bottom: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.post-meta a { color: #888; text-decoration: none; }
.post-meta a:hover { color: #2E546B; }
.post-excerpt { font-size: 0.98em; color: #444; line-height: 1.7; margin-bottom: 16px; }
.read-more { display: inline-block; color: #2E546B; font-weight: 600;
             text-decoration: none; font-size: 0.9em; }
.read-more:hover { text-decoration: underline; }

/* Post thumbnail */
.post-thumbnail { margin-bottom: 16px; border-radius: 6px; overflow: hidden; }
.post-thumbnail img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* ============================================================
   Single post
   ============================================================ */
.post-header { padding: 30px 0 20px; border-bottom: 2px solid #eee; margin-bottom: 28px; }
.post-header h1 { font-size: 2em; color: #2E546B; margin-bottom: 10px; line-height: 1.25; }
.post-header .post-meta { font-size: 0.9em; color: #888; }

.post-featured-image { margin-bottom: 28px; border-radius: 6px; overflow: hidden; }
.post-featured-image img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

.post-content { font-size: 1.05em; color: #333; line-height: 1.8; }
.post-content h2 { font-size: 1.5em; color: #2E546B; margin: 32px 0 12px;
                   padding-bottom: 6px; border-bottom: 1px solid #dde; }
.post-content h3 { font-size: 1.25em; color: #2E546B; margin: 24px 0 10px; }
.post-content h4 { font-size: 1.1em; color: #2E546B; margin: 20px 0 8px; }
.post-content p  { margin-bottom: 16px; }
.post-content p:last-child { margin-bottom: 0; }
.post-content a  { color: #2E546B; text-decoration: underline; }
.post-content a:hover { color: #2a5a8c; }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
    border-left: 4px solid #2E546B; padding: 12px 20px;
    margin: 20px 0; background: #f5f8fc; border-radius: 0 6px 6px 0;
    color: #555; font-style: italic;
}
.post-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 16px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.post-content table th { background: #2E546B; color: #fff; padding: 10px 14px; text-align: left; }
.post-content table td { padding: 10px 14px; border-bottom: 1px solid #eee; }
.post-content table tr:hover td { background: #f5f8fc; }
.post-content code { background: #f0f4f8; padding: 2px 6px; border-radius: 3px;
                     font-family: monospace; font-size: 0.9em; }
.post-content pre  { background: #f0f4f8; padding: 16px; border-radius: 6px;
                     overflow-x: auto; margin: 16px 0; }
.post-content pre code { background: none; padding: 0; }
.post-content .wp-block-image { margin: 20px 0; }
.post-content .wp-block-image figcaption { font-size: 0.85em; color: #888;
                                            text-align: center; margin-top: 6px; }

/* Post tags */
.post-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee; }
.post-tags .tag-label { font-size: 0.85em; color: #888; margin-right: 8px; }
.post-tag { display: inline-block; background: #f0f4f8; color: #2E546B;
            padding: 3px 10px; border-radius: 3px; font-size: 0.82em;
            text-decoration: none; margin: 3px 3px 3px 0; }
.post-tag:hover { background: #2E546B; color: #fff; }

/* Post navigation */
.post-nav { display: flex; justify-content: space-between; gap: 20px;
            margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee; }
.post-nav a { color: #2E546B; text-decoration: none; font-size: 0.9em;
              max-width: 45%; }
.post-nav a:hover { text-decoration: underline; }
.post-nav .nav-label { font-size: 0.78em; color: #888; text-transform: uppercase;
                        letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
.post-nav .prev { text-align: left; }
.post-nav .next { text-align: right; }

/* ============================================================
   Sidebar
   ============================================================ */
.aside-box { border: 1px solid #dde; border-radius: 6px; padding: 16px 18px;
             margin-bottom: 24px; background: #fff; }
.aside-box h3 { font-size: 0.85em; text-transform: uppercase; color: #888;
                letter-spacing: 0.05em; margin-bottom: 14px;
                padding-bottom: 8px; border-bottom: 1px solid #eee; }
.aside-box ul { list-style: none; }
.aside-box ul li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.92em; }
.aside-box ul li:last-child { border-bottom: none; }
.aside-box ul li a { color: #2E546B; text-decoration: none; }
.aside-box ul li a:hover { text-decoration: underline; }
.aside-box .widget_search input[type="search"] {
    width: 100%; padding: 8px 12px; border: 1px solid #ccd;
    border-radius: 4px; font-size: 0.9em; font-family: 'Inter', sans-serif;
}
.aside-box .widget_search input[type="submit"] {
    margin-top: 8px; width: 100%; padding: 8px;
    background: #2E546B; color: #fff; border: none;
    border-radius: 4px; cursor: pointer; font-size: 0.9em;
}
.aside-box .widget_search input[type="submit"]:hover { background: #2a5a8c; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination { display: flex; gap: 6px; margin: 32px 0; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 14px; border: 1px solid #dde; border-radius: 4px;
    text-decoration: none; font-size: 0.9em; color: #2E546B;
}
.pagination .current { background: #2E546B; color: #fff; border-color: #2E546B; }
.pagination a:hover { background: #f0f4f8; }

/* ============================================================
   Archive / tag page header
   ============================================================ */
.archive-header { padding: 24px 0 16px; border-bottom: 2px solid #eee; margin-bottom: 28px; }
.archive-header h1 { font-size: 1.8em; color: #2E546B; margin-bottom: 6px; }
.archive-header p { color: #666; font-size: 0.98em; }

/* ============================================================
   No results
   ============================================================ */
.no-content { color: #888; font-style: italic; padding: 24px 0; text-align: center; }


.ferry-latest { margin: 40px 0; }
.ferry-latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 768px) { .ferry-latest-grid { grid-template-columns: 1fr; } }
.ferry-latest-title { font-size: 1em; font-weight: bold; color: #1a3a5c; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid #1a3a5c; }
.ferry-latest-list { list-style: none; margin: 0; padding: 0; }
.ferry-latest-list li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.ferry-latest-list a { color: #1a3a5c; text-decoration: none; font-weight: 500; font-size: 0.95em; }
.ferry-latest-list a:hover { text-decoration: underline; }
.ferry-meta { display: block; font-size: 0.8em; color: #888; margin-top: 2px; }
.ferry-latest-more { display: inline-block; margin-top: 12px; font-size: 0.85em; color: #1a3a5c; text-decoration: none; }
.ferry-latest-more:hover { text-decoration: underline; }


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 700px) {
    .blog-layout { flex-direction: column; }
    .blog-aside  { flex: none; width: 100%; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 1.5em; }
    header .wrap { flex-direction: column; align-items: flex-start; }
    .post-header h1 { font-size: 1.5em; }
    .post-card .post-title { font-size: 1.2em; }
    .post-nav { flex-direction: column; }
    .post-nav a { max-width: 100%; }
}
