/* assets/css/style.css */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

:root {
	--primary-color: #0A2342;
	--secondary-color: #81C784;
	--hover-accent-color: #6aa86d;
	--text-color: #333;
	--text-light-color: #666;
	--bg-color: #f8f8f8;
	--content-bg-color: #ffffff;
	--border-color: #e0e0e0;
	--table-border-color: #ccc;
	--border-light-color: #eee;
	--shadow-color: rgba(0, 0, 0, 0.08);
	--font-family: 'Noto Sans KR', 'Noto Sans SC', sans-serif;
	--base-font-size: 12px;
	--base-padding: 15px;
	--border-radius: 8px;
	--nav-height: 60px;
	--danger-color: #dc3545;
	--danger-dark-color: #bb2d3b;
	--success-color: #198754;
	--warning-color: #ffc107;
	--primary-light-color: #e7f0f7;
}

html {
  overflow-y: scroll;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-family);
	font-size: var(--base-font-size);
	color: var(--text-color);
	background-color: var(--bg-color);
	line-height: 1.6;
}

body.popup-open { 
    overflow: hidden;
}


body:not(.homepage) {
	padding-bottom: calc(var(--nav-height) + 10px);
}


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

a:hover {
	color: var(--hover-accent-color);
	text-decoration: underline;
}

button,
input[type="submit"],
input[type="button"] {
	cursor: pointer;
	transition: all 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	opacity: 0.85;
}

button:active,
input[type="submit"]:active,
input[type="button"]:active {
	transform: scale(0.98);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

hr {
	border: none;
	border-top: 1px solid var(--border-light-color);
	margin: 30px 0;
}

h1,
h2,
h3,
h4 {
	margin-bottom: 0.8em;
	line-height: 1.3;
	font-weight: 500;
}

h1 {
	font-size: 1.8em;
	color: var(--primary-color);
}

h2 {
	font-size: 1.4em;
	color: var(--primary-color);
}

h3 {
	font-size: 1.15em;
	font-weight: 700;
	color: var(--text-color);
}

h4 {
	font-size: 1.05em;
	font-weight: 500;
	color: var(--text-color);
}

ul,
ol {
	padding-left: 20px;
	margin-bottom: 1em;
}

ul.check-list {
	list-style: none;
	padding-left: 0;
}

ul.check-list li {
	padding-left: 1.8em;
	position: relative;
	margin-bottom: 0.48em;
}

ul.check-list li > i[class*="fa-"] {
	position: absolute;
	left: 0;
	top: 0.25em;
	color: var(--primary-color);
	font-size: 1em;
	width: 1.2em;
	text-align: center;
}

ul.check-list li strong {
	color: var(--text-color);
}


p {
	margin-bottom: 1em;
}

i {
	color: var(--text-light-color);
	margin-right: 6px;
	text-align: center;
	vertical-align: middle;
}

h1 i,
h2 i,
h3 i,
h4 i {
	color: inherit;
	width: auto;
}


.content-area {
	padding: var(--base-padding);
}

.content-section {
	background-color: var(--content-bg-color);
	padding: calc(var(--base-padding) * 1.5);
	border-radius: var(--border-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: var(--base-padding);
}

.content-section h1 {
	border-bottom: 1px solid var(--border-light-color);
	padding-bottom: 0.5em;
	margin-bottom: 1.2em;
}

.card-container { 
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--base-padding);
	margin-bottom: 1.5em;
}

.card {
	background-color: #fff;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius); 
	box-shadow: 0 1px 4px rgba(0,0,0,0.07);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden; 
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
	border-color: var(--secondary-color);
}

.card p.card-item-description-detail { 
    margin-bottom: 0.8em; 
    font-size: 1em; 
    color: var(--text-color); 
}


.card-image,
.section-image,
.location-image,
.info-box-image {
	width: 100%;
    aspect-ratio: 3 / 2;   
	object-fit: cover;
}
.card-image { 
    margin-bottom: 0; 
    border-bottom: none; 
    border-top-left-radius: calc(var(--border-radius) - 1px); 
    border-top-right-radius: calc(var(--border-radius) - 1px);
    display: block; 
}


.card-image2, 
.section-image2,
.location-image2,
.info-box-image2 {
    width: 100%;
    height: 300px; 
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: var(--base-padding);
}

.card-details-trigger-btn { 
    display: block;
    width: 100%;
    padding: 10px 15px;
    margin-top: auto; 
    background-color: #f8f9fa;
    border: none; 
    border-top: 1px solid var(--border-light-color);
    color: var(--primary-color);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9em;
    line-height: 1.4;
}

.card-details-trigger-btn:hover {
    background-color: #e9ecef;
}


.card-content {
	padding: var(--base-padding);
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.card h3,
.card h4 { 
	font-size: 1.1em;
	font-weight: 700;
	margin-bottom: 0.6em; 
	color: var(--text-color);
	margin-top: 0; 
}
.card h3 i,
.card h4 i {
	color: var(--primary-color);
	margin-right: 6px;
}

img.card-image[src=""] { 
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: small;
    text-align: center;
}
img.card-image[src=""]::after {
    content: "이미지 준비중";
}


.horizontal-scroll-wrapper { 
	margin-bottom: 2em;
}
.horizontal-scroll-container { 
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 20px 10px;
    gap: var(--base-padding, 15px);
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 4px;
}
.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #aaaaaa;
}
.horizontal-scroll-container > .item {
    display: inline-block;
    vertical-align: top;
    flex-shrink: 0;
}

.search-container {
    margin-top: 1.5em;
    padding: var(--base-padding);
    background-color: #f8f9fa;
    border: 1px solid var(--border-light-color);
    border-radius: var(--border-radius);
    display: flex;
    gap: 10px;
    align-items: center;
}
.search-container input[type="search"] {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
}
.search-container button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}
.search-container button:hover {
    background-color: var(--secondary-color);
}
.card.highlight {
    outline: 3px solid var(--secondary-color);
    outline-offset: -3px;
    transition: outline 0.1s ease-in-out;
}


.collapsible-text-only > summary {
    list-style: none;
    cursor: pointer;
    display: inline-block;
    padding: 5px 0;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2em;
    transition: color 0.2s ease;
}
.collapsible-text-only > summary:hover {
    color: var(--secondary-color);
}
.collapsible-text-only > summary > h3 {
    display: inline;
    margin: 0;
    font-size: 1.15em;
    color: inherit;
}
.collapsible-text-only > ul.check-list {
    padding-left: 1.5em;
    margin-top: 0.5em;
}


.explore-section-title {
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--primary-color);
}

.location-analysis {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--base-padding);
    margin-bottom: var(--base-padding);
    background-color: #fff;
}
.location-analysis h3,
.location-analysis h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8em;
}
.location-analysis .rating {
    font-size: 0.9em;
    color: #ffc107;
    font-weight: bold;
    white-space: nowrap;
}
.location-analysis .rating i {
    color: inherit;
    margin-right: 2px;
    width: auto;
}
.location-analysis ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}
.location-analysis li {
    margin-bottom: 0.5em;
    padding-left: 1.8em;
    position: relative;
}
.location-analysis li > i {
    width: 1.3em;
    margin-right: 4px;
    position: absolute;
    left: 0;
    top: 0.25em;
}
.positive-icon { color: #198754 !important; }
.negative-icon { color: #dc3545 !important; }
.warning-icon { color: #ffc107 !important; }


.schedule-table,
.checklist-table,
.phrase-table,
.budget-table,
.user-budget-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.95em;
    background-color: #fff;
}

.schedule-table th, .schedule-table td,
.checklist-table th, .checklist-table td,
.phrase-table th, .phrase-table td,
.budget-table th, .budget-table td,
.user-budget-table th, .user-budget-table td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.schedule-table thead th,
.checklist-table thead th,
.phrase-table thead th,
.budget-table thead th,
.user-budget-table thead th {
    background-color: #f8f9fa;
    font-weight: 500;
    vertical-align: middle;
    border-bottom: 2px solid var(--border-color);
}
.user-budget-table tfoot th,
.user-budget-table tfoot td {
    background-color: #f8f9fa;
    font-weight: bold;
    border-top: 2px solid var(--border-color);
}

.schedule-table th:nth-child(1), .schedule-table td:nth-child(1),
.schedule-table th:nth-child(2), .schedule-table td:nth-child(2) {
    text-align: center;
    vertical-align: middle;
}

.schedule-table th:nth-child(3), .schedule-table td:nth-child(3),
.schedule-table th:nth-child(4), .schedule-table td:nth-child(4) {
    text-align: left;
    vertical-align: top;
}

.checklist-table th:nth-child(1), .checklist-table td:nth-child(1) { width: 25%; vertical-align: middle; }
.checklist-table th:nth-child(2), .checklist-table td:nth-child(2) { width: 45%; }
.checklist-table th:nth-child(3), .checklist-table td:nth-child(3) { width: 30%; }

.phrase-table th:nth-child(1), .phrase-table td:nth-child(1) { width: 25%; }
.phrase-table th:nth-child(2), .phrase-table td:nth-child(2) { width: 30%; }
.phrase-table th:nth-child(3), .phrase-table td:nth-child(3) { width: 25%; }
.phrase-table th:nth-child(4), .phrase-table td:nth-child(4) { width: 20%; }

.budget-table td:first-child i,
.user-budget-table td:first-child i {
    margin-right: 8px;
    color: var(--secondary-color);
    width: 1.3em;
    text-align: center;
    vertical-align: middle;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5em;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.table-responsive > table {
    margin-bottom: 0;
    border: none;
    border-collapse: collapse;
}
.table-responsive .schedule-table { min-width: 600px; }
.table-responsive .checklist-table { min-width: 600px; }
.table-responsive .phrase-table { min-width: 500px; }
.table-responsive .budget-table { min-width: 400px; }
.table-responsive .user-budget-table { min-width: 550px; }


input[type="text"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.25);
    outline: none;
}
input[type="text"],
input[type="number"],
input[type="search"],
select,
textarea {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}


.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--content-bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: var(--text-light-color);
    font-size: 11px;
    padding: 5px 0;
    transition: color 0.3s ease, transform 0.1s ease;
}
.nav-item i {
    font-size: 22px;
    margin-bottom: 3px;
    color: inherit;
    width: auto;
    margin-right: 0;
}
.nav-item span {
    display: block;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.nav-item.active {
    color: var(--primary-color);
}
.nav-item:hover {
    color: var(--hover-accent-color);
    text-decoration: none;
}
.nav-item:active {
    transform: scale(0.95);
    background-color: transparent;
}

.home-button {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1010;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--primary-color);
    border: 1px solid var(--border-light-color);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.home-button i {
    margin: 0;
    font-size: 1.1em;
    color: inherit;
    line-height: 1;
}
.home-button:hover {
    background-color: #fff;
    color: var(--hover-accent-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

#user-auth-status {
    text-align: right;
    margin-bottom: 10px; 
    padding-top: 5px; 
    color: var(--text-light-color); 
    position: relative; 
    padding-right: 70px; 
    font-size: 0.9em;
}
#user-auth-status a {
    color: var(--primary-color); 
    font-weight: 500; 
}
#user-auth-status a:hover {
    color: var(--hover-accent-color);
}


.app-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.app-item-link:hover .app-name {
    color: var(--hover-accent-color);
}


.app-warning-message {
    padding: 12px 18px;
    margin: 0 var(--base-padding) var(--base-padding) var(--base-padding);
    border-radius: var(--border-radius);
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    font-size: 0.9em;
    z-index: 1100;
    position: relative;
    display: none;
}
.app-warning-message.error {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}
.app-warning-message.disappearing {
    opacity: 0;
}

.project-select-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.project-select-modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}
.project-select-modal-content {
    background-color: var(--content-bg-color);
    padding: 1.5em 2em;
    border-radius: var(--border-radius);
    max-width: 90%;
    width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
}
.project-select-modal-overlay.active .project-select-modal-content {
    transform: translateY(0);
}
.project-select-modal-content h4 {
    margin-top: 0;
    margin-bottom: 1.2em;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.1em;
    line-height: 1.4;
}
#project-select-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8em;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}
#project-select-close-btn:hover {
    color: #333;
}
#project-select-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 50vh;
    overflow-y: auto;
}
#project-select-list li {
    margin-bottom: 0.8em;
}
#project-select-list button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: left;
    font-size: 1em;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
#project-select-list button:hover {
    background-color: var(--primary-light-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
#project-select-list p {
    font-size: 0.9em;
    color: var(--text-light-color);
    text-align: center;
    padding: 1em 0;
}
#project-select-list p a {
    color: var(--primary-color);
    text-decoration: underline;
}


.nightlife-link-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    color: #003366;
    text-decoration: none;
    background: linear-gradient(90deg, #ff7e5f, #feb47b, #faff7b, #7bd88f, #7bb1ff, #a77bff);
    background-size: 200% 100%;
    transition: background-position 0.5s ease, transform 0.1s ease;
    text-shadow: 0 0 4px rgba(204, 204, 204, 0.6);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.nightlife-link-button:hover {
    background-position: -100% 0;
    opacity: 0.95;
}
.nightlife-link-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.tab-container {
    margin-top: 1.5em;
}
.tab-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    padding: 0;
    margin: 0 0 -1px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}
.tab-item {
    flex-shrink: 0;
    padding: 12px 22px;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    margin-right: 5px;
    color: var(--text-light-color);
    font-weight: 500;
    font-size: 1.05em;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.tab-item i {
    margin-right: 6px;
}
.tab-item:hover {
    background-color: #e9ecef;
    color: var(--text-color);
}
.tab-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    position: relative;
}
.tab-item.active i {
    color: white;
}
.tab-content-wrapper { /* General tab content wrapper */
    border: 1px solid var(--border-color);
    padding: calc(var(--base-padding) * 1.5);
    border-top-right-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    background-color: var(--content-bg-color);
    margin-top: 0;
    min-height: 400px; /* This might need to be overridden for specific tab contents like itineraries */
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.tab-pane h2 { /* This h2 is inside a tab pane, e.g., for logistics_content */
    margin-top: 0.5em; /* Adjust if it's the very first H2 in that loaded content */
    font-size: 1.5em; /* Or match #tab-content-display-area > div > h2 */
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border-light-color);
    margin-bottom: 1.5em;
}
.tab-pane h3 {
    margin-top: 2em;
}
.tab-pane h3:first-of-type {
    margin-top: 0;
}
.tab-pane .section-image,
.tab-pane .location-image2 {
    max-width: 100%;
    height: auto;
    margin-bottom: 1em;
    border-radius: 6px;
}
.tab-pane .location-image2 {
    height: 250px;
    object-fit: cover;
}


.button-primary {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    font-size: 1em;
}
.button-primary:hover {
    opacity: 0.85;
}
.button-secondary {
    padding: 8px 15px;
    background-color: #ccc;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1em;
}
.button-secondary:hover {
    background-color: #bbb;
}
.button-danger {
    padding: 8px 15px;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    font-size: 1em;
}
.button-danger:hover {
    background-color: var(--danger-dark-color);
    opacity: 0.9;
}
.button-danger:disabled {
    background-color: #e7a1a8;
    cursor: not-allowed;
    opacity: 0.7;
}

/* General iframe styling - MODIFIED */
iframe {
    display: block;
    border: 0 !important;
    outline: none !important;
}

.iframe-container iframe { /* Specific class for iframes already had border:none, reinforced with !important */
    display: block;
    width: 100%;
    height: auto;
    min-height: 600px;
    border: 0 !important; 
    outline: none !important;
}

.plan-step-body iframe { /* For plan.html iframes */
    border: none !important;
    outline: none !important;
}


@media (min-width: 768px) {
    :root {
        --base-font-size: 13px;
    }
    .content-area {
        max-width: 960px;
        margin: 0 auto;
        padding: calc(var(--base-padding) * 2);
    }
}

@media (max-width: 767px) {
    .table-responsive th,
    .table-responsive td {
        padding: 8px 10px;
        font-size: 0.9em;
        white-space: nowrap;
        border: 1px solid #bbb;
        vertical-align: middle;
    }
    .table-responsive .schedule-table td:nth-child(3),
    .table-responsive .schedule-table td:nth-child(4),
    .table-responsive .checklist-table td:nth-child(2),
    .table-responsive .checklist-table td:nth-child(3),
    .table-responsive .phrase-table td,
    .table-responsive .phrase-table th,
    .table-responsive .user-budget-table td:nth-child(3) {
        white-space: normal;
        vertical-align: top;
    }
    .table-responsive .schedule-table td:nth-child(3),
    .table-responsive .schedule-table td:nth-child(4) {
        min-width: 150px;
    }
    .table-responsive .checklist-table td:nth-child(2),
    .table-responsive .checklist-table td:nth-child(3) {
        min-width: 120px;
    }

    .content-section {
        padding: var(--base-padding) 0;
        box-shadow: none;
        border-radius: 0;
        border: none;
        margin-bottom: 0;
        background-color: var(--bg-color);
    }
    .content-section > h1:first-child {
        margin-top: 0;
        padding-left: var(--base-padding);
        padding-right: var(--base-padding);
    }
    .content-section > p {
        padding-left: var(--base-padding);
        padding-right: var(--base-padding);
    }

    .card {
        border: 1px solid var(--border-light-color);
        box-shadow: none;
        margin-bottom: var(--base-padding);
        /* border-radius: 0; */ /* MODIFIED: Removed this line to allow cards to be rounded on mobile */
    }
    .card-content {
        padding: calc(var(--base-padding) * 0.8);
    }
    .card-image,
    


    .table-responsive {
        border: none;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    .table-responsive > table {
        border-radius: 0;
    }

    .tab-content-wrapper { /* For general tabs on mobile */
        border-left: none;
        border-right: none;
        border-bottom: none; /* Remove bottom border if not desired on mobile */
        padding: var(--base-padding) 0 0 0; /* Adjust padding for mobile */
        background-color: transparent;
        border-radius: 0;
    }
    .tab-pane > h2:first-child, /* These selectors target content within general tabs */
    .tab-pane > section > h2:first-child,
    .tab-pane > div > h2:first-child {
	    margin-top: 0;
        padding-left: var(--base-padding);
        padding-right: var(--base-padding);
	}
    .tab-pane > p { /* Paragraphs within general tabs */
        padding-left: var(--base-padding);
		padding-right: var(--base-padding);
    }

    .search-container {
        background-color: transparent;
        border: none;
        padding-left: 0; /* Adjusted from var(--base-padding) 0 */
        padding-right: 0;
        border-radius:0;
    }
    .explore-section-title {
        padding-left: var(--base-padding);
		padding-right: var(--base-padding);
    }

    #user-auth-status {
        padding-right: 35px; 
        font-size: 0.85em;
        padding-top: 8px;
    }
    .home-button {
		top: 10px;
		right: 10px;
		width: 36px;
		height: 36px;
	}
	.home-button i {
		font-size: 1em;
	}
}

/* styles for image wrapper and floating add button */
.card-image-wrapper {
    position: relative; 
    display: block; 
    overflow: hidden; 
    border-top-left-radius: calc(var(--border-radius) - 1px); 
    border-top-right-radius: calc(var(--border-radius) - 1px);
}

.floating-add-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.45); 
    color: white;
    border: none;
    border-radius: 50%; 
    font-size: 16px; 
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; 
    cursor: pointer;
    z-index: 5; 
    transition: background-color 0.2s ease, transform 0.1s ease;
    padding: 0; 
}
.floating-add-btn:hover {
    background-color: rgba(0, 0, 0, 0.65);
    transform: scale(1.05);
}
.floating-add-btn.added {
    background-color: rgba(40, 167, 69, 0.7); 
}
.floating-add-btn.added i.fa-plus { display: none; }
.floating-add-btn.added i.fa-check { display: inline-block !important; }
.floating-add-btn:not(.added) i.fa-check { display: none; }
.floating-add-btn i { color: white; margin: 0; font-size: 1em; }

.card.item:hover .floating-add-btn { 
    background-color: rgba(0, 0, 0, 0.6);
}